aboutsummaryrefslogtreecommitdiff
path: root/bitcoin-qt.pro
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2012-08-14 11:37:21 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2012-08-18 10:52:50 +0200
commit8e2ebc0106bb7da42bcb53f7c00e8231a8cf09a5 (patch)
treec6c8f720b034d890278c553d7d61c227519ee990 /bitcoin-qt.pro
parent10ffb456678147fe33f6eacc16c6b58147047cfb (diff)
downloadbitcoin-8e2ebc0106bb7da42bcb53f7c00e8231a8cf09a5.tar.xz
Bitcoin-Qt (Windows only): add ASLR and DEP linker flags
- for extra security on Windows: enable ASLR and DEP via GCC linker flags GCC linker flag description: --dynamicbase The image base address may be relocated using address space layout randomization (ASLR). This feature was introduced with MS Windows Vista for i386 PE targets. --nxcompat The image is compatible with the Data Execution Prevention. This feature was introduced with MS Windows XP SP2 for i386 PE targets.
Diffstat (limited to 'bitcoin-qt.pro')
-rw-r--r--bitcoin-qt.pro3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitcoin-qt.pro b/bitcoin-qt.pro
index 39afee6382..e15e1c1ae5 100644
--- a/bitcoin-qt.pro
+++ b/bitcoin-qt.pro
@@ -30,6 +30,9 @@ contains(RELEASE, 1) {
}
}
+# for extra security on Windows: enable ASLR and DEP via GCC linker flags
+win32:QMAKE_LFLAGS *= -Wl,--dynamicbase -Wl,--nxcompat
+
# use: qmake "USE_QRCODE=1"
# libqrencode (http://fukuchi.org/works/qrencode/index.en.html) must be installed for support
contains(USE_QRCODE, 1) {