From 3eebd3e8c30db84e54b26a92a4686c70456863b2 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 26 May 2013 16:29:57 -0700 Subject: [PATCH] Removed dependency on libgcc_s_sjlj-1.dll when building with mingw64 --- build-scripts/ltmain.sh | 3 ++- configure | 5 +---- configure.in | 5 +---- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/build-scripts/ltmain.sh b/build-scripts/ltmain.sh index 63ae69dc6..5607845bc 100755 --- a/build-scripts/ltmain.sh +++ b/build-scripts/ltmain.sh @@ -5851,9 +5851,10 @@ func_mode_link () # -tp=* Portland pgcc target processor selection # --sysroot=* for sysroot support # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization + # -{shared,static}-lib*: force GCC to link against specified libgcc -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ - -O*|-flto*|-fwhopr*|-fuse-linker-plugin) + -O*|-flto*|-fwhopr*|-fuse-linker-plugin|-shared-lib*|-static-lib*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" func_append compile_command " $arg" diff --git a/configure b/configure index 7fd145b19..913cc214d 100755 --- a/configure +++ b/configure @@ -22243,10 +22243,7 @@ $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h have_loadso=yes fi # Set up the system libraries we need - # SDL is unicode, and unicows emulates this on Windows 98/ME - # You can get this here: http://libunicows.sourceforge.net/ - #EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lunicows" - EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lversion -luuid" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid -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.in b/configure.in index a3cb9f4b0..e10c8bb0a 100644 --- a/configure.in +++ b/configure.in @@ -2411,10 +2411,7 @@ AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau have_loadso=yes fi # Set up the system libraries we need - # SDL is unicode, and unicows emulates this on Windows 98/ME - # You can get this here: http://libunicows.sourceforge.net/ - #EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lunicows" - EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lversion -luuid" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid -static-libgcc" # The Windows platform requires special setup VERSION_SOURCES="$srcdir/src/main/windows/*.rc" SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"