pgsql: MinGW: Use -static-libgcc when linking a DLL. - Mailing list pgsql-committers

From Noah Misch
Subject pgsql: MinGW: Use -static-libgcc when linking a DLL.
Date
Msg-id E1Xgm96-0004sV-K3@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/284590e416b72f541c5fe54f36a95e38d80835c3

Modified Files
--------------
src/Makefile.shlib           |   10 ++++++++--
src/makefiles/Makefile.win32 |    2 +-
2 files changed, 9 insertions(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Noah Misch
Date:
Subject: pgsql: MinGW: Link with shell32.dll instead of shfolder.dll.
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Update comment.