diff options
author | Christian Ambach <ambi@samba.org> | 2013-05-07 09:06:50 +0200 |
---|---|---|
committer | Christian Ambach <ambi@samba.org> | 2013-05-17 11:16:33 +0200 |
commit | 162ec83f68efc89c46630f6842700bca8f16b201 (patch) | |
tree | a354b936a5f920e3bd854d37d49bdbd3a8237aaa | |
parent | 355f78fe9e8ba09179693597104915f3b6963139 (diff) | |
download | samba-162ec83f68efc89c46630f6842700bca8f16b201.tar.gz |
waf: only use -fstack-protector when both compiler and linker support it
otherwise build with xlc on AIX fails because the compiler silently ignores the parameter
but the linker does not like it
Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r-- | lib/replace/wscript | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript index 9483e230891..bc45ee9043f 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -53,7 +53,7 @@ struct foo bar = { .y = 'X', .x = 1 }; conf.ADD_CFLAGS(f) break - if conf.CHECK_CFLAGS(['-fstack-protector']): + if conf.CHECK_CFLAGS(['-fstack-protector']) and conf.CHECK_LDFLAGS(['-fstack-protector']): conf.ADD_CFLAGS('-fstack-protector') conf.ADD_LDFLAGS('-fstack-protector') |