Commit 2c07d6bf authored by Bruce Momjian's avatar Bruce Momjian

Cleanups for FreeBSD linking (PIC) and plpython compiles.

FreeBSD ports, supplied by Jim C. Nasby
parent 60672b59
...@@ -10,7 +10,7 @@ DLSUFFIX = .so ...@@ -10,7 +10,7 @@ DLSUFFIX = .so
ifeq ($(findstring sparc,$(host_cpu)), sparc) ifeq ($(findstring sparc,$(host_cpu)), sparc)
CFLAGS_SL = -fPIC -DPIC CFLAGS_SL = -fPIC -DPIC
else else
CFLAGS_SL = -fpic -DPIC CFLAGS_SL = -fPIC -DPIC
endif endif
...@@ -28,3 +28,5 @@ else ...@@ -28,3 +28,5 @@ else
endif endif
sqlmansect = 7 sqlmansect = 7
allow_nonpic_in_shlib = yes
# $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 subdir = src/pl/plpython
top_builddir = ../../.. top_builddir = ../../..
...@@ -9,7 +9,7 @@ include $(top_builddir)/src/Makefile.global ...@@ -9,7 +9,7 @@ include $(top_builddir)/src/Makefile.global
# shared library. Since there is no official way to determine this # 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 # (at least not in pre-2.3 Python), we see if there is a file that is
# named like a shared library. # named like a shared library.
ifneq (,$(wildcard $(python_libdir)/libpython*$(DLSUFFIX)*)) ifneq (,$(wildcard $(python_libdir)/../../libpython*$(DLSUFFIX)*))
shared_libpython = yes shared_libpython = yes
endif endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment