aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index 06d7cbab..e386cc3a 100755
--- a/configure
+++ b/configure
@@ -20,6 +20,8 @@ fi
# Required for our expected ABI. we're 8-bit clean thus "char" must be unsigned.
CFLAGS="$CFLAGS -funsigned-char"
[ -z "$OPTIMIZE" ] && OPTIMIZE="-Os -ffunction-sections -fdata-sections -fno-asynchronous-unwind-tables -fno-strict-aliasing"
+# set ASAN=1 to enable "address sanitizer" and debuggable backtraces
+[ -z "$ASAN" ] || CFLAGS="$CFLAGS -O1 -g -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=address"
# We accept LDFLAGS, but by default don't have anything in it
if [ "$(uname)" != "Darwin" ]