configure: Set large address aware.
authorMatthew Oliver <protogonoi@gmail.com>
Sun, 5 Oct 2014 00:10:37 +0000 (11:10 +1100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 5 Oct 2014 03:33:36 +0000 (05:33 +0200)
Enables >2GB memory usage for 32 bit compiles on Windows.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
configure

index 71a0d59..125063c 100755 (executable)
--- a/configure
+++ b/configure
@@ -4037,6 +4037,7 @@ case $target_os in
         enabled shared && ! enabled small && check_cmd $windres --version && enable gnu_windres
         check_ldflags -Wl,--nxcompat
         check_ldflags -Wl,--dynamicbase
+        enabled x86_32 && check_ldflags -Wl,--large-address-aware
         shlibdir_default="$bindir_default"
         SLIBPREF=""
         SLIBSUF=".dll"
@@ -4069,6 +4070,7 @@ case $target_os in
             # Cannot build both shared and static libs with MSVC or icl.
             disable static
         fi
+        enabled x86_32 && check_ldflags -LARGEADDRESSAWARE
         shlibdir_default="$bindir_default"
         SLIBPREF=""
         SLIBSUF=".dll"