aboutsummaryrefslogtreecommitdiff
path: root/contrib/ltree_plpython
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2015-07-15 21:00:26 -0400
committerNoah Misch <noah@leadboat.com>2015-07-15 21:00:26 -0400
commit7193436744819270eeb772f6ada4ec7a388c0b5f (patch)
treeafe36341138f6444ab708fd443600d62df0606c0 /contrib/ltree_plpython
parentbcd7c41206faf6d9654aa6e3766f87770d4fb305 (diff)
downloadpostgresql-7193436744819270eeb772f6ada4ec7a388c0b5f.tar.gz
postgresql-7193436744819270eeb772f6ada4ec7a388c0b5f.zip
AIX: Link TRANSFORM modules with their dependencies.
The result closely resembles linking of these modules for the "win32" port. Augment the $(exports_file) header so the file is also usable as an import file. Unfortunately, relocating an AIX installation will now require adding $(pkglibdir) to LD_LIBRARY_PATH. Back-patch to 9.5, where the modules were introduced.
Diffstat (limited to 'contrib/ltree_plpython')
-rw-r--r--contrib/ltree_plpython/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/ltree_plpython/Makefile b/contrib/ltree_plpython/Makefile
index 0eeb9b83eb3..20b0dcfbc58 100644
--- a/contrib/ltree_plpython/Makefile
+++ b/contrib/ltree_plpython/Makefile
@@ -23,8 +23,13 @@ include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif
+# In configurations that forbid undefined symbols in libraries, link with each
+# dependency. This does preclude pgxs builds.
+ifeq ($(PORTNAME), aix)
+rpathdir = $(pkglibdir):$(python_libdir)
+SHLIB_LINK += $(python_libspec) $(python_additional_libs) $(wildcard ../../src/pl/plpython/libplpython*.exp)
+endif
ifeq ($(PORTNAME), win32)
-# This means we need an in-tree build on Windows, not a pgxs build
SHLIB_LINK += $(wildcard ../../src/pl/plpython/libpython*.a) $(wildcard ../../src/pl/plpython/libplpython*.a)
endif