From 41bb3cb7c981b9794890dee2313fe1128d9274cf Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 24 Aug 2005 20:20:38 +0000 Subject: [PATCH] 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. --- src/makefiles/Makefile.freebsd | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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