Add -fsanitize-address-use-after-scope to --enable-asan if available

This commit is contained in:
Tim Rühsen 2017-07-27 11:29:02 +02:00
parent c10ef083d6
commit c1bf52dbc3
1 changed files with 1 additions and 0 deletions

View File

@ -109,6 +109,7 @@ AC_ARG_ENABLE([asan],
if test "$enableval" = yes; then
asan=yes
CFLAGS=$CFLAGS" -fsanitize=address -fno-omit-frame-pointer"
AX_CHECK_COMPILE_FLAG([-fsanitize-address-use-after-scope], [CFLAGS="$CFLAGS -fsanitize-address-use-after-scope"])
fi
])