pgsql: aix: No need to use mkldexport when we want to export all symbol

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: aix: No need to use mkldexport when we want to export all symbol
Date: 2022-09-10 02:12:49
Message-ID: E1oWpzF-002EG4-AG@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fe6a64a58ab3e5bda3aceee2f1ee3e8efdb03865

Modified Files
--------------
src/Makefile.shlib | 45 ++++++++++++++++++---------------------------
src/makefiles/Makefile.aix | 8 ++------
2 files changed, 20 insertions(+), 33 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message John Naylor 2022-09-10 02:44:44 Re: pgsql: Fix perltidy breaking perlcritic
Previous Message Tom Lane 2022-09-09 19:34:21 pgsql: Fix possible omission of variable storage markers in ECPG.