summaryrefslogtreecommitdiff
path: root/src/makefiles/Makefile.aix
diff options
context:
space:
mode:
authorAndres Freund2022-09-10 02:11:49 +0000
committerAndres Freund2022-09-10 02:11:49 +0000
commitfe6a64a58ab3e5bda3aceee2f1ee3e8efdb03865 (patch)
tree15c12008a2f7d17ef651236ec19a33cadb445b80 /src/makefiles/Makefile.aix
parentb7050e2584803a6abe71fb0b94a63b63e59cff9c (diff)
aix: No need to use mkldexport when we want to export all symbols
When building a shared library with exports.txt there's no need to build an intermediary static library, we can just pass -Wl,-bE:... when generating the .so. When building a shared library without exports.txt, there's no need to call mkldexport.sh to export all symbols, because all symbols are exported anyway, and we don't need the export file on the import side (like we do for postgres.imp). This makes building .so's on aix a lot more similar to building on other platforms. In particular, we don't create and remove a .a of the same name but different contents anymore. Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/makefiles/Makefile.aix')
-rw-r--r--src/makefiles/Makefile.aix8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/makefiles/Makefile.aix b/src/makefiles/Makefile.aix
index 9408c1e2913..56d7f22aff6 100644
--- a/src/makefiles/Makefile.aix
+++ b/src/makefiles/Makefile.aix
@@ -38,9 +38,5 @@ endif
MKLDEXPORT_DIR=src/backend/port/aix
MKLDEXPORT=$(top_srcdir)/$(MKLDEXPORT_DIR)/mkldexport.sh
-%.exp: %.o
- $(MKLDEXPORT) $^ >$@
-
-# Rule for building a shared library from a single .o file
-%$(DLSUFFIX): %.o %.exp
- $(CC) $(CFLAGS) $*.o $(LDFLAGS) $(LDFLAGS_SL) -o $@ -Wl,-bE:$*.exp $(BE_DLLLIBS)
+%$(DLSUFFIX): %.o
+ $(CC) $(CFLAGS) $*.o $(LDFLAGS) $(LDFLAGS_SL) -o $@ $(BE_DLLLIBS)