# sdl12-compat: Makefile.mingw: add a note about libgcc requirement.

**URL:** <https://discourse.libsdl.org/t/sdl12-compat-makefile-mingw-add-a-note-about-libgcc-requirement/31803>\
**Category:** SDL Commits\
**Created:** [June 10, 2021, 8:04pm UTC](https://discourse.libsdl.org/t/sdl12-compat-makefile-mingw-add-a-note-about-libgcc-requirement/31803 "2021-06-10T20:04:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [June 10, 2021, 8:04pm UTC](https://discourse.libsdl.org/t/sdl12-compat-makefile-mingw-add-a-note-about-libgcc-requirement/31803/1 "2021-06-10T20:04:02Z")

</div>

> <https://github.com/libsdl-org/sdl12-compat/commit/3e1375d4e771584104e4402e09f7fe9965029c82>

```diff
From 3e1375d4e771584104e4402e09f7fe9965029c82 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Thu, 10 Jun 2021 23:01:02 +0300
Subject: [PATCH] Makefile.mingw: add a note about libgcc requirement.

---
 src/Makefile.mingw | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/Makefile.mingw b/src/Makefile.mingw
index b31e890..1130a9c 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
+# libgcc is needed for 32 bit (x86) builds:
 LDLIBS += -static-libgcc -lgcc
 
 LIB = libSDL.dll.a

```
