Removed dependency on libgcc_s_sjlj-1.dll when building with mingw64
authorSam Lantinga <slouken@libsdl.org>
Sun, 26 May 2013 16:29:57 -0700
changeset 7234fa967628d5e9
parent 7233 8be254bba36a
child 7235 80fefd4af771
Removed dependency on libgcc_s_sjlj-1.dll when building with mingw64
build-scripts/ltmain.sh
configure
configure.in
     1.1 --- a/build-scripts/ltmain.sh	Sun May 26 16:08:15 2013 -0700
     1.2 +++ b/build-scripts/ltmain.sh	Sun May 26 16:29:57 2013 -0700
     1.3 @@ -5851,9 +5851,10 @@
     1.4        # -tp=*                Portland pgcc target processor selection
     1.5        # --sysroot=*          for sysroot support
     1.6        # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
     1.7 +      # -{shared,static}-lib*: force GCC to link against specified libgcc
     1.8        -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
     1.9        -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
    1.10 -      -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
    1.11 +      -O*|-flto*|-fwhopr*|-fuse-linker-plugin|-shared-lib*|-static-lib*)
    1.12          func_quote_for_eval "$arg"
    1.13  	arg="$func_quote_for_eval_result"
    1.14          func_append compile_command " $arg"
     2.1 --- a/configure	Sun May 26 16:08:15 2013 -0700
     2.2 +++ b/configure	Sun May 26 16:29:57 2013 -0700
     2.3 @@ -22243,10 +22243,7 @@
     2.4              have_loadso=yes
     2.5          fi
     2.6          # Set up the system libraries we need
     2.7 -        # SDL is unicode, and unicows emulates this on Windows 98/ME
     2.8 -        # You can get this here: http://libunicows.sourceforge.net/
     2.9 -        #EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lunicows"
    2.10 -        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lversion -luuid"
    2.11 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid -static-libgcc"
    2.12          # The Windows platform requires special setup
    2.13          VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
    2.14          SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
     3.1 --- a/configure.in	Sun May 26 16:08:15 2013 -0700
     3.2 +++ b/configure.in	Sun May 26 16:29:57 2013 -0700
     3.3 @@ -2411,10 +2411,7 @@
     3.4              have_loadso=yes
     3.5          fi
     3.6          # Set up the system libraries we need
     3.7 -        # SDL is unicode, and unicows emulates this on Windows 98/ME
     3.8 -        # You can get this here: http://libunicows.sourceforge.net/
     3.9 -        #EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lunicows"
    3.10 -        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lversion -luuid"
    3.11 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid -static-libgcc"
    3.12          # The Windows platform requires special setup
    3.13          VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
    3.14          SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"