aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-08-24 20:20:38 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-08-24 20:20:38 +0000
commit41bb3cb7c981b9794890dee2313fe1128d9274cf (patch)
treef5a7af51966de377540bba94a5d0190df3b11fa4 /src
parent75f633b6d112cc9d0e6ab8b44c2930d59ccdcc52 (diff)
downloadpostgresql-41bb3cb7c981b9794890dee2313fe1128d9274cf.tar.gz
postgresql-41bb3cb7c981b9794890dee2313fe1128d9274cf.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/makefiles/Makefile.freebsd8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/makefiles/Makefile.freebsd b/src/makefiles/Makefile.freebsd
index f47ecc12325..3b543bcbda6 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