From c1bf52dbc387164e837a258a8038fdc38b72ed78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Thu, 27 Jul 2017 11:29:02 +0200 Subject: [PATCH] Add -fsanitize-address-use-after-scope to --enable-asan if available --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 4182c2c..c9dc5bd 100644 --- a/configure.ac +++ b/configure.ac @@ -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 ])