pgsql: meson: mingw: Add -Wl,--disable-auto-import, enable when linking

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: meson: mingw: Add -Wl,--disable-auto-import, enable when linking
Date: 2022-10-01 02:44:40
Message-ID: E1oeSUZ-000N5L-Nw@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

meson: mingw: Add -Wl,--disable-auto-import, enable when linking with readline

I hadn't ported -Wl,--disable-auto-import over from the win32 template as I
had focused on msvc for windows. The flag is desirable as it makes it easier
to find problems one would have with msvc, particularly useful during cross
compilation.

This turned out to be a somewhat happy accident, as it allowed me to realize
that readline actually works on windows these days, as long as auto imports to
enable. Therefore enable auto-import again as part of linking to readline.

We perhaps can come up with a better solution for the readline issue, but this
seems good enough for now.

Discussion: http://postgr.es/m/20220928022724.erzuk5v4ai4b53do@awork3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/24ef127b6d1f268ca09f4c501b4655e914329c5a

Modified Files
--------------
meson.build | 9 +++++++++
1 file changed, 9 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Geoghegan 2022-10-01 04:23:05 Re: pgsql: Avoid improbable PANIC during heap_update.
Previous Message Peter Geoghegan 2022-10-01 01:29:28 Re: pgsql: Avoid improbable PANIC during heap_update.