diff options
author | Tom Lane | 2003-05-19 17:51:08 +0000 |
---|---|---|
committer | Tom Lane | 2003-05-19 17:51:08 +0000 |
commit | af1850fc1a052e9c3613eff091349b9af244c3f7 (patch) | |
tree | c326af6a6bcd7c0772de21a65a35759072c6ce80 | |
parent | 529ec66d534b812b32d675f12f2f3c07393b9679 (diff) |
Use -fPIC on Sparc, per Tom Callaway.
-rw-r--r-- | src/makefiles/Makefile.linux | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/makefiles/Makefile.linux b/src/makefiles/Makefile.linux index 2b204f9d853..c40355240b2 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 $@ $< |