aboutsummaryrefslogtreecommitdiff
path: root/src
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:30 -0400
commit525a6a0d4580f52c13f0c9b7c9d82a4f96ef92fa (patch)
tree00955ca81ea28bb6b3103a3d801b99337041619a /src
parentc2b824e34e2ba9a26e914a41f4dd53f27304dc70 (diff)
downloadpostgresql-525a6a0d4580f52c13f0c9b7c9d82a4f96ef92fa.tar.gz
postgresql-525a6a0d4580f52c13f0c9b7c9d82a4f96ef92fa.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 'src')
-rw-r--r--src/Makefile.shlib3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Makefile.shlib b/src/Makefile.shlib
index 50c3805eec0..86db52fe5e1 100644
--- a/src/Makefile.shlib
+++ b/src/Makefile.shlib
@@ -111,6 +111,7 @@ ifeq ($(PORTNAME), aix)
shlib = lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
endif
haslibarule = yes
+ # $(exports_file) is also usable as an import file
exports_file = lib$(NAME).exp
endif
@@ -341,7 +342,7 @@ $(shlib) $(stlib): $(OBJS) | $(SHLIB_PREREQS)
rm -f $(stlib)
$(LINK.static) $(stlib) $^
$(RANLIB) $(stlib)
- $(MKLDEXPORT) $(stlib) >$(exports_file)
+ $(MKLDEXPORT) $(stlib) $(shlib) >$(exports_file)
$(COMPILER) -o $(shlib) $(stlib) -Wl,-bE:$(exports_file) $(LDFLAGS) $(LDFLAGS_SL) $(SHLIB_LINK)
rm -f $(stlib)
$(AR) $(AROPT) $(stlib) $(shlib)