• Noah Misch's avatar
    MinGW: Use -static-libgcc when linking a DLL. · 284590e4
    Noah Misch authored
    When commit 846e91e0 switched the linker
    driver from dlltool/dllwrap to gcc, it became possible for linking to
    choose shared libgcc.  Backends having loaded a module dynamically
    linked to libgcc can exit abnormally, which the postmaster treats like a
    crash.  Resume use of static libgcc exclusively, like 9.3 and earlier.
    Back-patch to 9.4.
    284590e4
Makefile.shlib 15.6 KB