aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-01-23 07:00:24 -0800
committerGavin Andresen <gavinandresen@gmail.com>2013-01-23 07:00:24 -0800
commit5a4af8f71f527fc7902860aeb0e1b013e0368336 (patch)
tree1cc2e7345b74dbb91622552c24fe688b2819bc46 /src
parenta337505bd7d0791fa1123c600ea9295cafa678b3 (diff)
parent1f0ce2dd68313094af7cf6647bdf5936bee8352c (diff)
downloadbitcoin-5a4af8f71f527fc7902860aeb0e1b013e0368336.tar.xz
Merge pull request #2167 from Diapolo/Qt_laa_flag
enable GCC large address aware linker flag (Windows only)
Diffstat (limited to 'src')
-rw-r--r--src/makefile.linux-mingw3
-rw-r--r--src/makefile.mingw3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/makefile.linux-mingw b/src/makefile.linux-mingw
index ff565f2a2d..efbce1f047 100644
--- a/src/makefile.linux-mingw
+++ b/src/makefile.linux-mingw
@@ -33,7 +33,8 @@ LIBS= \
DEFS=-D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE
DEBUGFLAGS=-g
CFLAGS=-O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
-LDFLAGS=-Wl,--dynamicbase -Wl,--nxcompat
+# enable: ASLR, DEP and large address aware
+LDFLAGS=-Wl,--dynamicbase -Wl,--nxcompat -Wl,--large-address-aware
TESTDEFS = -DTEST_DATA_DIR=$(abspath test/data)
diff --git a/src/makefile.mingw b/src/makefile.mingw
index 9a6680bf40..a7a57a2a24 100644
--- a/src/makefile.mingw
+++ b/src/makefile.mingw
@@ -28,7 +28,8 @@ LIBS= \
DEFS=-DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE
DEBUGFLAGS=-g
CFLAGS=-mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
-LDFLAGS=-Wl,--dynamicbase -Wl,--nxcompat
+# enable: ASLR, DEP and large address aware
+LDFLAGS=-Wl,--dynamicbase -Wl,--nxcompat -Wl,--large-address-aware
TESTDEFS = -DTEST_DATA_DIR=$(abspath test/data)