]> granicus.if.org Git - postgresql/commitdiff
Back off allow_nonpic_in_shlib for FreeBSD builds: only set it on i386.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 24 Aug 2005 20:20:38 +0000 (20:20 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 24 Aug 2005 20:20:38 +0000 (20:20 +0000)
This might be overly conservative, but we know it does not work on amd64.
Per buildfarm results.

src/makefiles/Makefile.freebsd

index f47ecc12325f20c067b86985e321da2a5fc9739c..3b543bcbda624a2d01b2bcc94e184cf44bd71f2f 100644 (file)
@@ -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