summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2012-10-30 13:00:58 +0100
committerBjoern Jacke <bj@sernet.de>2012-10-30 15:04:30 +0100
commite6643fbf48afccd0acedb65fbe24d3ce84d44c40 (patch)
tree781027760403975d06cb0812ffe3347c1ac647af
parent9a03cc93f45a6908c73afe2d059a4ebf5534fdb7 (diff)
downloadsamba-e6643fbf48afccd0acedb65fbe24d3ce84d44c40.tar.gz
samba-e6643fbf48afccd0acedb65fbe24d3ce84d44c40.tar.bz2
samba-e6643fbf48afccd0acedb65fbe24d3ce84d44c40.zip
wafbuild: use -Wstack-protector if available
Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Tue Oct 30 15:04:30 CET 2012 on sn-devel-104
-rw-r--r--lib/replace/wscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 9a6be208de..9dfa985aec 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -53,6 +53,9 @@ struct foo bar = { .y = 'X', .x = 1 };
conf.ADD_CFLAGS(f)
break
+ if conf.CHECK_CFLAGS(['-Wstack-protector']):
+ conf.ADD_CFLAGS('-Wstack-protector')
+
# Try to find the right extra flags for -Werror behaviour
for f in ["-Werror", # GCC
"-errwarn=%all", # Sun Studio