From: Michael Tremer Date: Sat, 22 Feb 2025 15:38:31 +0000 (+0000) Subject: configure: Build with debugging information when using asan X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50cfab397a550e09f472a5beacc33505ec6e8143;p=pakfire.git configure: Build with debugging information when using asan Signed-off-by: Michael Tremer --- 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