Use -fPIC on Sparc, per Tom Callaway.

This commit is contained in:
Tom Lane 2003-05-19 17:51:01 +00:00
parent 36adb2e095
commit 9ecba0c2f8

View File

@ -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 $@ $<