mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Use -fPIC on Sparc, per Tom Callaway.
This commit is contained in:
parent
36adb2e095
commit
9ecba0c2f8
@ -4,7 +4,12 @@ rpath = -Wl,-rpath,$(libdir)
|
|||||||
shlib_symbolic = -Wl,-Bsymbolic
|
shlib_symbolic = -Wl,-Bsymbolic
|
||||||
allow_nonpic_in_shlib = yes
|
allow_nonpic_in_shlib = yes
|
||||||
DLSUFFIX = .so
|
DLSUFFIX = .so
|
||||||
|
|
||||||
|
ifeq "$(findstring sparc,$(host_cpu))" "sparc"
|
||||||
|
CFLAGS_SL = -fPIC
|
||||||
|
else
|
||||||
CFLAGS_SL = -fpic
|
CFLAGS_SL = -fpic
|
||||||
|
endif
|
||||||
|
|
||||||
%.so: %.o
|
%.so: %.o
|
||||||
$(CC) -shared -o $@ $<
|
$(CC) -shared -o $@ $<
|
||||||
|
Loading…
Reference in New Issue
Block a user