diff options
author | Ira Cooper <ira@samba.org> | 2013-03-06 00:54:43 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-03-06 04:06:04 +0100 |
commit | 7fa4795607f018590caa26b5eca5abb68922c039 (patch) | |
tree | adb91aba45328b0d31c645b3a7f67e93d66c208e /lib | |
parent | 511e575e29a62c5d7dece91e41dd965e9546147c (diff) | |
download | samba-7fa4795607f018590caa26b5eca5abb68922c039.tar.gz samba-7fa4795607f018590caa26b5eca5abb68922c039.tar.bz2 samba-7fa4795607f018590caa26b5eca5abb68922c039.zip |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/replace/wscript | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript index 36a9f6a366..9483e23089 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -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 |