From: Tom Lane <tgl@sss.pgh.pa.us> Date: Wed, 24 Aug 2005 20:20:38 +0000 (+0000) Subject: Back off allow_nonpic_in_shlib for FreeBSD builds: only set it on i386. X-Git-Tag: REL8_1_0BETA1~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41bb3cb7c981b9794890dee2313fe1128d9274cf;p=postgresql Back off allow_nonpic_in_shlib for FreeBSD builds: only set it on i386. This might be overly conservative, but we know it does not work on amd64. Per buildfarm results. --- diff --git a/src/makefiles/Makefile.freebsd b/src/makefiles/Makefile.freebsd index f47ecc1232..3b543bcbda 100644 --- a/src/makefiles/Makefile.freebsd +++ b/src/makefiles/Makefile.freebsd @@ -7,10 +7,10 @@ endif DLSUFFIX = .so -ifeq ($(findstring sparc,$(host_cpu)), sparc) -CFLAGS_SL = -fPIC -DPIC -else CFLAGS_SL = -fPIC -DPIC + +ifeq ($(findstring i386,$(host_cpu)), i386) +allow_nonpic_in_shlib = yes endif @@ -28,5 +28,3 @@ else endif sqlmansect = 7 - -allow_nonpic_in_shlib = yes