diff options
author | Noah Misch <noah@leadboat.com> | 2015-07-15 21:00:26 -0400 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2015-07-15 21:00:26 -0400 |
commit | 7193436744819270eeb772f6ada4ec7a388c0b5f (patch) | |
tree | afe36341138f6444ab708fd443600d62df0606c0 /contrib/hstore_plperl | |
parent | bcd7c41206faf6d9654aa6e3766f87770d4fb305 (diff) | |
download | postgresql-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/hstore_plperl')
-rw-r--r-- | contrib/hstore_plperl/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/hstore_plperl/Makefile b/contrib/hstore_plperl/Makefile index 19a8ab4493c..d789b99375a 100644 --- a/contrib/hstore_plperl/Makefile +++ b/contrib/hstore_plperl/Makefile @@ -23,10 +23,15 @@ 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):$(perl_archlibexp)/CORE +SHLIB_LINK += ../hstore/libhstore.exp $(perl_embed_ldflags) +endif ifeq ($(PORTNAME), win32) # these settings are the same as for plperl override CPPFLAGS += -DPLPERL_HAVE_UID_GID -Wno-comment -# This means we need an in-tree build on Windows, not a pgxs build SHLIB_LINK += ../hstore/libhstore.a $(wildcard ../../src/pl/plperl/libperl*.a) endif |