meson/gcc9-sanitizer.patch

14 lines
500 B
Diff
Raw Normal View History

diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index e27ae2b..bc10824 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -427,7 +427,7 @@ def sanitizer_compile_args(value):
def sanitizer_link_args(value):
if value == 'none':
return []
- args = ['-fsanitize=' + value]
+ args = ['-fsanitize=' + value, '-ldl', '-lrt', '-lm', '-lpthread']
return args
def option_enabled(boptions, options, option):