]> git.ipfire.org Git - pakfire.git/commitdiff
configure: Build with debugging information when using asan
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 22 Feb 2025 15:38:31 +0000 (15:38 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 22 Feb 2025 15:38:31 +0000 (15:38 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
configure.ac

index 92bd89921df232f2d5fe4c7a185dbd04b570b1d8..1c1fc26cc003e8c125785e8414c1ad78fff1b84f 100644 (file)
@@ -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