diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-10-29 11:44:37 +0200 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2011-11-01 10:49:26 -0400 |
commit | 533c82ce92ea09d2b01d461d7c258a2057e96b49 (patch) | |
tree | e7798f57718154ba50de122753ace662ab84b5a5 /bitcoin-qt.pro | |
parent | fca0e799c27ac941c199b5db5d4243e87d6ef694 (diff) |
do not use -fstack-protector on Windows
Diffstat (limited to 'bitcoin-qt.pro')
-rw-r--r-- | bitcoin-qt.pro | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bitcoin-qt.pro b/bitcoin-qt.pro index 62801fc5d9..d1a7e68aa4 100644 --- a/bitcoin-qt.pro +++ b/bitcoin-qt.pro @@ -54,9 +54,12 @@ contains(BITCOIN_NEED_QT_PLUGINS, 1) { QTPLUGIN += qcncodecs qjpcodecs qtwcodecs qkrcodecs } -# for extra security against potential buffer overflows -QMAKE_CXXFLAGS += -fstack-protector -QMAKE_LFLAGS += -fstack-protector +!windows { + # for extra security against potential buffer overflows + QMAKE_CXXFLAGS += -fstack-protector + QMAKE_LFLAGS += -fstack-protector + # do not enable this on windows, as it will result in a non-working executable! +} # disable quite some warnings because bitcoin core "sins" a lot QMAKE_CXXFLAGS_WARN_ON = -fdiagnostics-show-option -Wall -Wno-strict-aliasing -Wno-invalid-offsetof -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare -Wno-char-subscripts -Wno-unused-value -Wno-sequence-point -Wno-parentheses -Wno-unknown-pragmas -Wno-switch |