Обсуждение: pgsql: meson: mingw: Add -Wl,--disable-auto-import, enable when linking

Поиск
Список
Период
Сортировка

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

От
Andres Freund
Дата:
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(+)