mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
build: use -fstack-protector if available
Signed-off-by: Bjoern Jacke <bj@sernet.de> Reviewed-by: Matthieu Patou <mat@samba.org> Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Fri Feb 22 15:38:21 CET 2013 on sn-devel-104
This commit is contained in:
parent
d537d64ab8
commit
240a55249d
@ -53,6 +53,9 @@ struct foo bar = { .y = 'X', .x = 1 };
|
||||
conf.ADD_CFLAGS(f)
|
||||
break
|
||||
|
||||
if conf.CHECK_CFLAGS(['-fstack-protector']):
|
||||
conf.ADD_CFLAGS('-fstack-protector')
|
||||
|
||||
# Try to find the right extra flags for -Werror behaviour
|
||||
for f in ["-Werror", # GCC
|
||||
"-errwarn=%all", # Sun Studio
|
||||
|
Loading…
Reference in New Issue
Block a user