From 22aec0cb0bb53c126f9feb0471f616203e55d37d Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Sun, 31 Jul 2022 09:31:52 -0700 Subject: [PATCH] Add -g when debugging with -fsanitize=address to include symbols. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 3fa3e86..fbaf253 100755 --- a/configure +++ b/configure @@ -211,7 +211,7 @@ if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then fi fi if test $sanitize -eq 1; then - CFLAGS="${CFLAGS} -fsanitize=address" + CFLAGS="${CFLAGS} -g -fsanitize=address" fi if test $debug -eq 1; then CFLAGS="${CFLAGS} -DZLIB_DEBUG"