aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@adacore.com>2018-10-12 20:11:27 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2018-10-12 20:11:27 +0000
commit67aeaded2f8dabe16b4879261c6b6ddda6b53cd2 (patch)
tree2c0666d5a96feaaa414d864ef835106a6dc116ac /gcc/configure
parent9e41e97531b6fe141ca2f35839f4f1d45f47170e (diff)
downloadgcc-67aeaded2f8dabe16b4879261c6b6ddda6b53cd2.zip
gcc-67aeaded2f8dabe16b4879261c6b6ddda6b53cd2.tar.gz
gcc-67aeaded2f8dabe16b4879261c6b6ddda6b53cd2.tar.bz2
introduce --enable-large-address-aware
Add a configure knob for mingw32 and 64 toolchains to default passing --large-address-aware to the linker, when creating 32-bit binaries. -Wl,--disable-large-address-aware can still reverse its effects. for gcc/ChangeLog * configure.ac: Introduce --enable-large-address-aware to define MINGW_DEFAULT_LARGE_ADDR_AWARE. * doc/install.texi: Document it. * configure, config.in: Rebuilt. * config/i386/mingw32.h (LINK_SPEC_LARGE_ADDR_AWARE): Define, based on MINGW_DEFAULT_LARGE_ADDR_AWARE. (LINK_SPEC): Insert it. * config/i386/mingw-264.h: Likewise. From-SVN: r265130
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure18
1 files changed, 16 insertions, 2 deletions
diff --git a/gcc/configure b/gcc/configure
index 3e33a69..5638601 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -928,6 +928,7 @@ enable_sjlj_exceptions
with_gcc_major_version_only
enable_secureplt
enable_mingw_wildcard
+enable_large_address_aware
enable_leading_mingw64_underscores
enable_cld
enable_frame_pointer
@@ -1645,6 +1646,8 @@ Optional Features:
--enable-secureplt enable -msecure-plt by default for PowerPC
--enable-mingw-wildcard Set whether to expand wildcard on command-line.
Default to platform configuration
+ --enable-large-address-aware
+ Link mingw executables with --large-address-aware
--enable-leading-mingw64-underscores
enable leading underscores on 64 bit mingw targets
--enable-cld enable -mcld by default for 32bit x86
@@ -12037,6 +12040,17 @@ _ACEOF
fi
+# Check whether --enable-large-address-aware was given.
+if test "${enable_large_address_aware+set}" = set; then :
+ enableval=$enable_large_address_aware;
+fi
+
+if test x"$enable_large_address_aware" = xyes; then :
+
+$as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
+
+fi
+
# Check whether --enable-leading-mingw64-underscores was given.
if test "${enable_leading_mingw64_underscores+set}" = set; then :
enableval=$enable_leading_mingw64_underscores;
@@ -18495,7 +18509,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 18498 "configure"
+#line 18512 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -18601,7 +18615,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 18604 "configure"
+#line 18618 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H