From: Tom Lane Date: Mon, 19 May 2003 17:51:08 +0000 (+0000) Subject: Use -fPIC on Sparc, per Tom Callaway. X-Git-Tag: REL7_3_3~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af1850fc1a052e9c3613eff091349b9af244c3f7;p=postgresql Use -fPIC on Sparc, per Tom Callaway. --- diff --git a/src/makefiles/Makefile.linux b/src/makefiles/Makefile.linux index 2b204f9d85..c40355240b 100644 --- a/src/makefiles/Makefile.linux +++ b/src/makefiles/Makefile.linux @@ -4,7 +4,12 @@ rpath = -Wl,-rpath,$(libdir) shlib_symbolic = -Wl,-Bsymbolic allow_nonpic_in_shlib = yes DLSUFFIX = .so + +ifeq "$(findstring sparc,$(host_cpu))" "sparc" +CFLAGS_SL = -fPIC +else CFLAGS_SL = -fpic +endif %.so: %.o $(CC) -shared -o $@ $<