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

pull/694/head
Mark Adler 3 years ago
parent eff308af42
commit 22aec0cb0b
  1. 2
      configure

2
configure vendored

@ -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"

Loading…
Cancel
Save