summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2022-09-06 08:47:47 +0200
committerAndrew Bartlett <abartlet@samba.org>2022-09-08 22:34:36 +0000
commit6b9018d3c98113c6984a1fe65cce42771ccb4600 (patch)
tree4b5ae6036d1fe4a03bbcfa795d0c6ccb82d7c346 /wscript
parentb475e02066437920b671bdd0f91602f4f5b7c5f0 (diff)
downloadsamba-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--wscript3
1 files changed, 2 insertions, 1 deletions
diff --git a/wscript b/wscript
index 3af4207516d..5e775ebd2dd 100644
--- a/wscript
+++ b/wscript
@@ -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"):