1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

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
This commit is contained in:
Björn Jacke 2012-10-30 13:00:58 +01:00 committed by Bjoern Jacke
parent 9a03cc93f4
commit e6643fbf48

View File

@ -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