aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-05-19 17:51:01 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-05-19 17:51:01 +0000
commit9ecba0c2f88cdd119c5da9fa279bcab79a03b43b (patch)
tree90d59de632622e87ba48df116e143433c1f127e0
parent36adb2e0955523c402037e601d848e4206f2ee34 (diff)
downloadpostgresql-9ecba0c2f88cdd119c5da9fa279bcab79a03b43b.tar.gz
postgresql-9ecba0c2f88cdd119c5da9fa279bcab79a03b43b.zip
Use -fPIC on Sparc, per Tom Callaway.
-rw-r--r--src/makefiles/Makefile.linux5
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 $@ $<