aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2005-08-12 20:57:11 +0000
committerBruce Momjian <bruce@momjian.us>2005-08-12 20:57:11 +0000
commit2c07d6bfa504fdfbbc2330a30548beb9280a66ac (patch)
tree63259d39627e9e3974ffd9099b7988909a22293e
parent60672b59b8c32d1b12ca8cbe088649cbf44de258 (diff)
downloadpostgresql-2c07d6bfa504fdfbbc2330a30548beb9280a66ac.tar.gz
postgresql-2c07d6bfa504fdfbbc2330a30548beb9280a66ac.zip
Cleanups for FreeBSD linking (PIC) and plpython compiles.
FreeBSD ports, supplied by Jim C. Nasby
-rw-r--r--src/makefiles/Makefile.freebsd4
-rw-r--r--src/pl/plpython/Makefile4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/makefiles/Makefile.freebsd b/src/makefiles/Makefile.freebsd
index e5a489e2a8b..f47ecc12325 100644
--- a/src/makefiles/Makefile.freebsd
+++ b/src/makefiles/Makefile.freebsd
@@ -10,7 +10,7 @@ DLSUFFIX = .so
ifeq ($(findstring sparc,$(host_cpu)), sparc)
CFLAGS_SL = -fPIC -DPIC
else
-CFLAGS_SL = -fpic -DPIC
+CFLAGS_SL = -fPIC -DPIC
endif
@@ -28,3 +28,5 @@ else
endif
sqlmansect = 7
+
+allow_nonpic_in_shlib = yes
diff --git a/src/pl/plpython/Makefile b/src/pl/plpython/Makefile
index c8eead2601d..1ce9a4e51c0 100644
--- a/src/pl/plpython/Makefile
+++ b/src/pl/plpython/Makefile
@@ -1,4 +1,4 @@
-# $PostgreSQL: pgsql/src/pl/plpython/Makefile,v 1.21 2005/05/24 17:07:41 tgl Exp $
+# $PostgreSQL: pgsql/src/pl/plpython/Makefile,v 1.22 2005/08/12 20:57:11 momjian Exp $
subdir = src/pl/plpython
top_builddir = ../../..
@@ -9,7 +9,7 @@ include $(top_builddir)/src/Makefile.global
# shared library. Since there is no official way to determine this
# (at least not in pre-2.3 Python), we see if there is a file that is
# named like a shared library.
-ifneq (,$(wildcard $(python_libdir)/libpython*$(DLSUFFIX)*))
+ifneq (,$(wildcard $(python_libdir)/../../libpython*$(DLSUFFIX)*))
shared_libpython = yes
endif