From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: aix: when building with gcc, tell gcc we're building a shared li |
Date: | 2022-09-01 18:54:36 |
Message-ID: | E1oTpKl-000yXs-Ru@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
aix: when building with gcc, tell gcc we're building a shared library
Not passing -shared to gcc when building a shared library triggers linking to
the wrong libgcc (libgcc.a instead of libgcc_s.a) and prevents emitting
correct unwind information. It's somewhat surprising that this hasn't caused
known problems so far.
Doing so requires adding path to libgcc to libpath, or linking statically to
libgcc - as the latter increases .so size substantially (for not entirely
obvious reasons), shared linking seems preferrable. It likely is worth
building executables with -shared-libgcc too, but I've not done that here.
Discussion: https://postgr.es/m/20220820174213.d574qde4ptwdzoqz@awork3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/e5484554ba90536aaff42db588a6397633713c43
Modified Files
--------------
src/makefiles/Makefile.aix | 11 +++++++++++
1 file changed, 11 insertions(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2022-09-01 19:02:51 | pgsql: Add a regression test for contrib/pgrowlocks. |
Previous Message | Tom Lane | 2022-09-01 18:30:53 | pgsql: Use --load-extension to set up for contrib/tcn's isolation tests |