From 23575a42e00a6af35668634d4277b08bb8fec6fd Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Tue, 22 Jun 2021 15:18:25 +0100 Subject: [PATCH] Ensure that libgcc is linked statically on Windows --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 15e5f2f09..80ee87bf5 100644 --- a/configure.ac +++ b/configure.ac @@ -3870,7 +3870,7 @@ case "$host" in else LIBUUID=-luuid fi - EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -Wc,-static-libgcc" # The Windows platform requires special setup VERSION_SOURCES="$srcdir/src/main/windows/*.rc" SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"