summaryrefslogtreecommitdiffstats
path: root/extras/autowaf.py
diff options
context:
space:
mode:
Diffstat (limited to 'extras/autowaf.py')
-rw-r--r--extras/autowaf.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/extras/autowaf.py b/extras/autowaf.py
index 01d6503..e528fdd 100644
--- a/extras/autowaf.py
+++ b/extras/autowaf.py
@@ -572,7 +572,14 @@ def configure(conf):
conf.env.append_value('LINKFLAGS', '/nologo')
elif Options.options.strict:
if conf.env.DEST_OS != "darwin":
- conf.env.append_value('LINKFLAGS', ['-Wl,--no-undefined'])
+ sanitizing = False
+ for f in conf.env.LINKFLAGS:
+ if f.startswith('-fsanitize'):
+ sanitizing = True
+ break;
+
+ if not sanitizing:
+ conf.env.append_value('LINKFLAGS', ['-Wl,--no-undefined'])
# Add less universal flags after checking they work
extra_flags = ['-Wlogical-op',