diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-09-14 17:42:16 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-09-14 17:42:16 +0200 |
commit | 4cc86b52d215b1d56368403ab0faccd92f701336 (patch) | |
tree | afcf29a91dbf50411cf9d4baf21611bb8bd0e180 | |
parent | 9a8ad855a1b7876f3e165c4caf7733e41762f3b2 (diff) | |
download | exchange-4cc86b52d215b1d56368403ab0faccd92f701336.tar.gz exchange-4cc86b52d215b1d56368403ab0faccd92f701336.zip |
add --enable-sanitizer
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 1b58b1f8e..a40dfb6a1 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -447,6 +447,12 @@ AC_ARG_ENABLE(linker-hardening, | |||
447 | [AS_IF([test x$enableval = xyes],[LDFLAGS="$LDFLAGS -z relro -z now"])]) | 447 | [AS_IF([test x$enableval = xyes],[LDFLAGS="$LDFLAGS -z relro -z now"])]) |
448 | 448 | ||
449 | 449 | ||
450 | AC_ARG_ENABLE(sanitizer, | ||
451 | AS_HELP_STRING(--enable-sanitizer, enable Address Sanitizer and Undefined Behavior Sanitizer), | ||
452 | [AS_IF([test x$enableval = xyes],[ | ||
453 | LDFLAGS="$CFLAGS -fsanitize=address,undefined -fno-omit-frame-pointer" | ||
454 | ])]) | ||
455 | |||
450 | # logging | 456 | # logging |
451 | extra_logging=0 | 457 | extra_logging=0 |
452 | AC_ARG_ENABLE([logging], | 458 | AC_ARG_ENABLE([logging], |