From: | "PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | BUG #1071: -fPIC needed for plperl & amd64 |
Date: | 2004-01-31 17:33:31 |
Message-ID: | 20040131173331.DB07ECF4D69@www.postgresql.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The following bug has been logged online:
Bug reference: 1071
Logged by: Palle Girgensohn
Email address: girgen(at)pingpong(dot)net
PostgreSQL version: 7.4
Operating system: FreeBSD
Description: -fPIC needed for plperl & amd64
Details:
Hi,
It seems that in order to build plperl on amd64, -fPIC is needed in CFLAGS.
Here's a trivial patch that fixes this for FreeBSD. It also adds the
possibility to link plperl even if there is no shared libperl.so, only a
static libperl.a. On FreeBSD, the perl ports are usually built with
libperl.a only.
--- src/makefiles/Makefile.freebsd.orig Wed Aug 29 21:14:40 2001
+++ src/makefiles/Makefile.freebsd Sat Jan 31 17:51:25 2004
@@ -7,7 +7,7 @@
endif
DLSUFFIX = .so
-CFLAGS_SL = -fpic -DPIC
+CFLAGS_SL = -fPIC -DPIC
%.so: %.o
ifdef ELF_SYSTEM
@@ -23,3 +23,5 @@
endif
sqlmansect = 7
+
+allow_nonpic_in_shlib = yes
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-01-31 17:57:57 | Re: BUG #1071: -fPIC needed for plperl & amd64 |
Previous Message | Tom Lane | 2004-01-31 17:19:02 | Re: India time zone missing |