summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Freund2022-08-25 03:38:28 +0000
committerAndres Freund2022-08-25 03:39:46 +0000
commit4444317f370cbbd6a9bb62d70dd8f1f062952ef4 (patch)
tree20525a3255ebe39c426cb5787217d19798f439ff
parent05bf551040ba161ddfbf7da308d61d2b7b425bf3 (diff)
aix: Fix SHLIB_EXPORTS reference in VPATH builds
The dependencies here aren't quite right independent of vpath builds or not, but this at least makes vpath builds succeed. And it's pretty rare to change the exports.txt file anyway... The referenced thread has a patch that will clean that up further. Discussion: https://postgr.es/m/20220820174213.d574qde4ptwdzoqz@awork3.anarazel.de
-rw-r--r--src/Makefile.shlib2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.shlib b/src/Makefile.shlib
index b868c8cea6b..1e09ab8ea62 100644
--- a/src/Makefile.shlib
+++ b/src/Makefile.shlib
@@ -307,7 +307,7 @@ $(shlib): $(OBJS) | $(SHLIB_PREREQS)
ifeq (,$(SHLIB_EXPORTS))
$(MKLDEXPORT) $(stlib) $(shlib) >$(exports_file)
else
- ( echo '#! $(shlib)'; $(AWK) '/^[^#]/ {printf "%s\n",$$1}' $(SHLIB_EXPORTS) ) >$(exports_file)
+ ( echo '#! $(shlib)'; $(AWK) '/^[^#]/ {printf "%s\n",$$1}' ${srcdir}/$(SHLIB_EXPORTS) ) >$(exports_file)
endif
$(COMPILER) -o $(shlib) $(stlib) -Wl,-bE:$(exports_file) $(LDFLAGS) $(LDFLAGS_SL) $(SHLIB_LINK)
rm -f $(stlib)