From 9ec3d19777d4cc119b03354bf886209601f46f56 Mon Sep 17 00:00:00 2001 From: q-posev Date: Mon, 11 Jul 2022 10:20:50 +0200 Subject: [PATCH] Add AddressSanitizer to the debug configure --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index e8e09c6..2b32656 100644 --- a/configure.ac +++ b/configure.ac @@ -358,8 +358,10 @@ if test "$ok" = "yes"; then if test "$GCC" = "yes"; then CFLAGS="$CFLAGS \ -g -Wall -W -Wbad-function-cast -Wcast-qual -Warray-bounds -Wdisabled-optimization \ +-fsanitize=address -fno-omit-frame-pointer \ -Wpointer-arith -Wcast-align -Wpedantic -Wextra -Walloc-zero -Werror \ " + LDFLAGS="$LDFLAGS -fsanitize=address" fi if test "$GFC" = "yes"; then FCFLAGS="$FCFLAGS \