From 2df2b6f4eb400c91968d2ef424c429ce0f087fc9 Mon Sep 17 00:00:00 2001 From: Nick Tiskov Date: Fri, 28 Nov 2014 16:40:08 +0300 Subject: [PATCH] Always disable ASLR for debug builds - otherwise debugging will fail --- winconf-mingw.pri | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/winconf-mingw.pri b/winconf-mingw.pri index 6a834d296..91309cfb7 100644 --- a/winconf-mingw.pri +++ b/winconf-mingw.pri @@ -10,6 +10,11 @@ strace_win:{ LIBS += libdbghelp } +CONFIG(debug, debug|release) { + # Make sure binary is not relocatable, otherwise debugging will fail + QMAKE_LFLAGS -= -Wl,--dynamicbase +} + RC_FILE = qbittorrent_mingw.rc #You need to link with libtorrent > 0.15.5 (or svn) and you must