From 50cfab397a550e09f472a5beacc33505ec6e8143 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 22 Feb 2025 15:38:31 +0000 Subject: [PATCH] configure: Build with debugging information when using asan Signed-off-by: Michael Tremer --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 92bd8992..1c1fc26c 100644 --- a/configure.ac +++ b/configure.ac @@ -177,7 +177,7 @@ AC_SUBST([OUR_LDFLAGS], $with_ldflags) dnl Check for support for -fsanitize=address if test "x${enable_asan}" = "xyes"; then - CC_CHECK_FLAGS_APPEND([asan_cflags], [CFLAGS], [-fsanitize=address]) + CC_CHECK_FLAGS_APPEND([asan_cflags], [CFLAGS], [-fsanitize=address -g -O0]) CC_CHECK_FLAGS_APPEND([asan_ldflags], [LDFLAGS], [-lasan]) fi -- 2.39.5