meson: mingw: Add -Wl,--disable-auto-import, enable when linking with readline
authorAndres Freund <andres@anarazel.de>
Wed, 28 Sep 2022 17:19:00 +0000 (10:19 -0700)
committerAndres Freund <andres@anarazel.de>
Sat, 1 Oct 2022 02:14:35 +0000 (19:14 -0700)
commit24ef127b6d1f268ca09f4c501b4655e914329c5a
tree0e5317d21347521ddcf5102b00193e07e5b34c5b
parent2dc2e4e31adb71502074c8c2bf9e0766347aa6e5
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
meson.build