diff options
author | Andreas Schneider <asn@samba.org> | 2022-09-06 08:47:47 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2022-09-08 22:34:36 +0000 |
commit | 6b9018d3c98113c6984a1fe65cce42771ccb4600 (patch) | |
tree | 4b5ae6036d1fe4a03bbcfa795d0c6ccb82d7c346 /wscript | |
parent | b475e02066437920b671bdd0f91602f4f5b7c5f0 (diff) | |
download | samba-6b9018d3c98113c6984a1fe65cce42771ccb4600.tar.gz |
waf: Do not use as-needed if we build with Address Sanitizer
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98669
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -362,7 +362,8 @@ def configure(conf): # allows us to find problems on our development hosts faster. # It also results in faster load time. - if conf.CHECK_LDFLAGS('-Wl,--as-needed'): + if (not Options.options.address_sanitizer + and conf.CHECK_LDFLAGS('-Wl,--as-needed')): conf.env.append_unique('LINKFLAGS', '-Wl,--as-needed') if not conf.CHECK_NEED_LC("-lc not needed"): |