meson/gcc9-sanitizer.patch
Dominique Leuenberger f20fd6617c Accepting request 700080 from home:marxin:branches:devel:tools:building
- Add gcc9-sanitizer.patch in order to handle unresolved symbols with
  -fsanitize=*. It's caused by sanitizer wrappers and our default --as-needed
  that we use as SUSE in our linker build (boo#1127953).

OBS-URL: https://build.opensuse.org/request/show/700080
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/meson?expand=0&rev=136
2019-05-14 11:37:01 +00:00

14 lines
500 B
Diff

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):