1
0
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:
Ira Cooper 2013-03-06 00:54:43 +00:00 committed by Andrew Bartlett
parent 511e575e29
commit 7fa4795607

View File

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