From bc141e4458a2709a10ac8121d062d1e2a88b5321 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Wed, 23 Jun 2021 15:09:07 +0100 Subject: [PATCH] Remove -static-libgcc from sdl2-config output --- configure | 3 ++- configure.ac | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configure b/configure index dea2e5351..432a7c821 100755 --- a/configure +++ b/configure @@ -25324,7 +25324,8 @@ $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h 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" + BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc" # The Windows platform requires special setup VERSION_SOURCES="$srcdir/src/main/windows/*.rc" SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c" diff --git a/configure.ac b/configure.ac index 15e5f2f09..275dcbb44 100644 --- a/configure.ac +++ b/configure.ac @@ -3870,7 +3870,8 @@ 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" + BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc" # The Windows platform requires special setup VERSION_SOURCES="$srcdir/src/main/windows/*.rc" SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"