From: Michael Tremer Date: Sat, 22 Feb 2025 17:05:09 +0000 (+0000) Subject: configure: Let the compiler figure out what to link for ASAN X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b1e6ffbbb3a22e8468a84d7b91306d9aec1a7ef4;p=pakfire.git configure: Let the compiler figure out what to link for ASAN Signed-off-by: Michael Tremer --- diff --git a/configure.ac b/configure.ac index 1c1fc26c..0018d3e0 100644 --- a/configure.ac +++ b/configure.ac @@ -177,8 +177,8 @@ 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 -g -O0]) - CC_CHECK_FLAGS_APPEND([asan_ldflags], [LDFLAGS], [-lasan]) + CC_CHECK_FLAGS_APPEND([asan_cflags], [CFLAGS], [-fsanitize=address]) + CC_CHECK_FLAGS_APPEND([asan_ldflags], [LDFLAGS], [-fsanitize=address]) fi AC_SUBST([ASAN_CFLAGS], ${asan_cflags})