Commit 87ed77d8 authored by Jean-Paul Saman's avatar Jean-Paul Saman

configure.ac: Add option to use gcc version 4.8.x Adress Sanitizer (gcc-asan)

Beware using the AdressSanitizer from GCC 4.8 uses a lot of memory. You need
more then 8GB of memory in your machine.
parent 19cbb361
......@@ -45,6 +45,20 @@ then
CFLAGS_dist="${CFLAGS_dist} -ggdb3"
fi
dnl --enable-gcc-sanitize
dnl NOTE: Only use with more then 8GB of memory in your system
AC_ARG_ENABLE(gcc-sanitize,
[ --enable-gcc-sanitize Use gcc address sanitizer (default disabled)],
[case "${enableval}" in
yes) sanitize=true ;;
no) sanitize=false;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-gcc-sanitize) ;;
esac],[sanitize=false])
if test "$sanitize" = "true"
then
CFLAGS_dist="${CFLAG_dist} -fsanitize=address -fno-omit-frame-pointer"
fi
dnl --enable-release
AC_ARG_ENABLE(release,
[ --enable-release Enable release mode (default disabled)],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment