Ensure that libgcc is linked statically on Windows

This commit is contained in:
Cameron Cawley 2021-06-22 15:18:25 +01:00 committed by Ozkan Sezer
parent 41fab8532d
commit 23575a42e0

View File

@ -3870,7 +3870,7 @@ case "$host" in
else else
LIBUUID=-luuid LIBUUID=-luuid
fi 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 # The Windows platform requires special setup
VERSION_SOURCES="$srcdir/src/main/windows/*.rc" VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c" SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"