Use -fPIC on Sparc, per Tom Callaway.

WIN32_DEV
Tom Lane 23 years ago
parent 36adb2e095
commit 9ecba0c2f8
  1. 5
      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 $@ $<

Loading…
Cancel
Save