aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-07-09 11:54:25 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-07-09 11:54:25 +0200
commitea8440d74264cf107da563031f4ccea4160d8486 (patch)
tree646f9c749d03fdba65df225199a0eeddbcb2fc97
parentadad8e46c90f36d4828ce53b1a9f83b17994efc0 (diff)
Add -fstack-protector to gcc CXX flags
-rw-r--r--bitcoin-qt.pro3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitcoin-qt.pro b/bitcoin-qt.pro
index 2a389e6840..99b6eb3896 100644
--- a/bitcoin-qt.pro
+++ b/bitcoin-qt.pro
@@ -12,6 +12,9 @@ macx:LIBS += -lboost_thread-mt
windows:DEFINES += __WXMSW__
windows:LIBS += -lssl -lcrypto -lboost_system-mgw44-mt-1_43 -lboost_filesystem-mgw44-mt-1_43 -lboost_program_options-mgw44-mt-1_43 -lboost_thread-mgw44-mt-1_43 -ldb_cxx -lws2_32 -lgdi32
+# for extra security against potential buffer overflows
+QMAKE_CXXFLAGS += -fstack-protector
+
# disable quite some warnings because bitcoin core "sins" a lot
QMAKE_CXXFLAGS_WARN_ON = -fdiagnostics-show-option -Wall -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