From d22d1a0845e6e7203579afcfbd61ecb457e5cf4f Mon Sep 17 00:00:00 2001 From: corvaxx Date: Wed, 5 Jul 2017 13:46:27 +0300 Subject: [PATCH] fix for debugger (gdb on win) --- blocknet-qt.pro | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/blocknet-qt.pro b/blocknet-qt.pro index e644054..66a9a2a 100644 --- a/blocknet-qt.pro +++ b/blocknet-qt.pro @@ -75,8 +75,14 @@ QMAKE_LFLAGS *= -fstack-protector-all --param ssp-buffer-size=1 # We need to exclude this for Windows cross compile with MinGW 4.2.x, as it will result in a non-working executable! # This can be enabled for Windows, when we switch to MinGW >= 4.4.x. } + # for extra security on Windows: enable ASLR and DEP via GCC linker flags -win32:QMAKE_LFLAGS *= -Wl,--dynamicbase -Wl,--nxcompat +win32 { + CONFIG(release, debug|release) { + QMAKE_LFLAGS *= -Wl,--dynamicbase -Wl,--nxcompat + } +} + QMAKE_CXXFLAGS = -fpermissive -std=c++11 # use: qmake "USE_QRCODE=1"