Better mingw32-x64 linker flag fix, which doesn't require libtool patch
authorSam Lantinga <slouken@libsdl.org>
Sun, 26 May 2013 22:16:42 -0700
changeset 723580fefd4af771
parent 7234 fa967628d5e9
child 7236 81ebe816a6da
Better mingw32-x64 linker flag fix, which doesn't require libtool patch
build-scripts/ltmain.sh
configure
configure.in
     1.1 --- a/build-scripts/ltmain.sh	Sun May 26 16:29:57 2013 -0700
     1.2 +++ b/build-scripts/ltmain.sh	Sun May 26 22:16:42 2013 -0700
     1.3 @@ -5851,10 +5851,9 @@
     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|-shared-lib*|-static-lib*)
    1.11 +      -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
    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:29:57 2013 -0700
     2.2 +++ b/configure	Sun May 26 22:16:42 2013 -0700
     2.3 @@ -22243,7 +22243,7 @@
     2.4              have_loadso=yes
     2.5          fi
     2.6          # Set up the system libraries we need
     2.7 -        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid -static-libgcc"
     2.8 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid -XCClinker -static-libgcc"
     2.9          # The Windows platform requires special setup
    2.10          VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
    2.11          SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
     3.1 --- a/configure.in	Sun May 26 16:29:57 2013 -0700
     3.2 +++ b/configure.in	Sun May 26 22:16:42 2013 -0700
     3.3 @@ -2411,7 +2411,7 @@
     3.4              have_loadso=yes
     3.5          fi
     3.6          # Set up the system libraries we need
     3.7 -        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid -static-libgcc"
     3.8 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid -XCClinker -static-libgcc"
     3.9          # The Windows platform requires special setup
    3.10          VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
    3.11          SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"