MinGW: Use -static-libgcc when linking a DLL.

Noah Misch <noah@leadboat.com>

Commit: 2f51f424bb362dadeb4fabf03845961e563da4ba
Author: Noah Misch <noah@leadboat.com>
Date: 2014-10-22T02:56:42Z
Releases: 9.4.0
MinGW: Use -static-libgcc when linking a DLL.

When commit 846e91e0223cf9f2821c3ad4dfffffbb929cb027 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.

Files

PathChange+/−
src/Makefile.shlib modified +8 −2
src/makefiles/Makefile.win32 modified +1 −1