mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
waf: add -fstack-protector to LDFLAGS if detected.
If we compile with -fstack-protector, we should link with it. Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Mar 6 04:06:04 CET 2013 on sn-devel-104
This commit is contained in:
parent
511e575e29
commit
7fa4795607
@ -55,6 +55,7 @@ struct foo bar = { .y = 'X', .x = 1 };
|
||||
|
||||
if conf.CHECK_CFLAGS(['-fstack-protector']):
|
||||
conf.ADD_CFLAGS('-fstack-protector')
|
||||
conf.ADD_LDFLAGS('-fstack-protector')
|
||||
|
||||
# Try to find the right extra flags for -Werror behaviour
|
||||
for f in ["-Werror", # GCC
|
||||
|
Loading…
Reference in New Issue
Block a user