From fe6a64a58ab3e5bda3aceee2f1ee3e8efdb03865 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Fri, 9 Sep 2022 19:11:49 -0700 Subject: 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/20220820174213.d574qde4ptwdzoqz@awork3.anarazel.de --- src/makefiles/Makefile.aix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/makefiles') 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) -- cgit v1.2.3