Add -g when debugging with -fsanitize=address to include symbols.

This commit is contained in:
Mark Adler 2022-07-31 09:31:52 -07:00
parent eff308af42
commit 22aec0cb0b

2
configure vendored
View File

@ -211,7 +211,7 @@ if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then
fi fi
fi fi
if test $sanitize -eq 1; then if test $sanitize -eq 1; then
CFLAGS="${CFLAGS} -fsanitize=address" CFLAGS="${CFLAGS} -g -fsanitize=address"
fi fi
if test $debug -eq 1; then if test $debug -eq 1; then
CFLAGS="${CFLAGS} -DZLIB_DEBUG" CFLAGS="${CFLAGS} -DZLIB_DEBUG"