diff options
author | Björn Jacke <bj@sernet.de> | 2012-10-30 13:00:58 +0100 |
---|---|---|
committer | Bjoern Jacke <bj@sernet.de> | 2012-10-30 15:04:30 +0100 |
commit | e6643fbf48afccd0acedb65fbe24d3ce84d44c40 (patch) | |
tree | 781027760403975d06cb0812ffe3347c1ac647af /lib/replace/wscript | |
parent | 9a03cc93f45a6908c73afe2d059a4ebf5534fdb7 (diff) | |
download | samba-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
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r-- | lib/replace/wscript | 3 |
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 |