aix: No need to use mkldexport when we want to export all symbols
authorAndres Freund <andres@anarazel.de>
Sat, 10 Sep 2022 02:11:49 +0000 (19:11 -0700)
committerAndres Freund <andres@anarazel.de>
Sat, 10 Sep 2022 02:11:49 +0000 (19:11 -0700)
commitfe6a64a58ab3e5bda3aceee2f1ee3e8efdb03865
tree15c12008a2f7d17ef651236ec19a33cadb445b80
parentb7050e2584803a6abe71fb0b94a63b63e59cff9c
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/Makefile.shlib
src/makefiles/Makefile.aix