sdl12-compat: Makefile.mingw: link to libgcc. fixes linkage of x86 builds.

From fd56c5bdc88cc709e95ac0e781d0023587000b56 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 8 Jun 2021 06:23:28 +0300
Subject: [PATCH] Makefile.mingw: link to libgcc. fixes linkage of x86 builds.

See: https://github.com/libsdl-org/sdl12-compat/issues/32#issuecomment-856263791
(CMake would need the same adjustment.)
---
 src/Makefile.mingw | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/Makefile.mingw b/src/Makefile.mingw
index 085ffcb..b31e890 100644
--- a/src/Makefile.mingw
+++ b/src/Makefile.mingw
@@ -18,6 +18,7 @@ CPPFLAGS = -DDLL_EXPORT -DNDEBUG
 CFLAGS  = -O3 -Wall
 LDFLAGS = -nostdlib -shared -Wl,--no-undefined -Wl,--enable-auto-image-base -Wl,--out-implib,$(LIB)
 LDLIBS  = -lkernel32 -luser32
+LDLIBS += -static-libgcc -lgcc
 
 LIB = libSDL.dll.a
 DLL = SDL.dll