add --enable-sanitizer

This commit is contained in:
Christian Grothoff 2019-09-14 17:42:16 +02:00
parent 9a8ad855a1
commit 4cc86b52d2
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -447,6 +447,12 @@ AC_ARG_ENABLE(linker-hardening,
[AS_IF([test x$enableval = xyes],[LDFLAGS="$LDFLAGS -z relro -z now"])]) [AS_IF([test x$enableval = xyes],[LDFLAGS="$LDFLAGS -z relro -z now"])])
AC_ARG_ENABLE(sanitizer,
AS_HELP_STRING(--enable-sanitizer, enable Address Sanitizer and Undefined Behavior Sanitizer),
[AS_IF([test x$enableval = xyes],[
LDFLAGS="$CFLAGS -fsanitize=address,undefined -fno-omit-frame-pointer"
])])
# logging # logging
extra_logging=0 extra_logging=0
AC_ARG_ENABLE([logging], AC_ARG_ENABLE([logging],