SDL-1.2: Link statically to libgcc on Windows

From d06a1eb74acf96ded8898b8507cc568c862c9d74 Mon Sep 17 00:00:00 2001
From: Cameron Cawley <[EMAIL REDACTED]>
Date: Tue, 22 Jun 2021 16:45:44 +0100
Subject: [PATCH] Link statically to libgcc on Windows

---
 configure    | 2 +-
 configure.ac | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 7b187ea63..cbadcd146 100755
--- a/configure
+++ b/configure
@@ -22253,7 +22253,7 @@ case "$host" in
             have_loadso=yes
         fi
         # Set up the system libraries we need
-        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm"
+        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -Wc,-static-libgcc"
         if test x$have_directx = xyes; then
             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldxguid"
         fi
diff --git a/configure.ac b/configure.ac
index 278fcc02b..8ce869b74 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2734,7 +2734,7 @@ case "$host" in
             have_loadso=yes
         fi
         # Set up the system libraries we need
-        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm"
+        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -Wc,-static-libgcc"
         if test x$have_directx = xyes; then
             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldxguid"
         fi