diff options
| author | Alex Richardson <arichardson@FreeBSD.org> | 2021-08-02 08:48:21 +0000 |
|---|---|---|
| committer | Alex Richardson <arichardson@FreeBSD.org> | 2021-08-02 13:33:24 +0000 |
| commit | 7bc797e3f3807660cf98e5b1bd63545cafe820f8 (patch) | |
| tree | a18a5a861b88b98e04104d5a563dbb4c4807e77a /lib/libgcc_eh | |
| parent | 5f6c8ce2452da2da233e37bf4c2b6fccde8594b1 (diff) | |
Diffstat (limited to 'lib/libgcc_eh')
| -rw-r--r-- | lib/libgcc_eh/Makefile.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libgcc_eh/Makefile.inc b/lib/libgcc_eh/Makefile.inc index 4fe1eff406e1..9e386992e78c 100644 --- a/lib/libgcc_eh/Makefile.inc +++ b/lib/libgcc_eh/Makefile.inc @@ -20,9 +20,17 @@ SRCS_EXC+= libunwind.cpp SRCS+= ${SRCS_EXC} .for file in ${SRCS_EXC:M*.c} CFLAGS.${file}+= -fno-exceptions -funwind-tables +.if ${MK_ASAN} != "no" +# False-positives during stack unwinding +CFLAGS.${file}+= -fno-sanitize=address +.endif .endfor .for file in ${SRCS_EXC:M*.cpp} CXXFLAGS.${file}+= -fno-exceptions -funwind-tables +.if ${MK_ASAN} != "no" +# False-positives during stack unwinding +CXXFLAGS.${file}+= -fno-sanitize=address +.endif .endfor CFLAGS+= -I${UNWINDINCDIR} |
