configure: fix sanitizer compilation

parent 6f527abc
......@@ -467,10 +467,15 @@ if test "x$enable_sanitizers" = "xyes"; then
CC_CHECK_FLAGS_APPEND([AM_CFLAGS],[CFLAGS],[ \
-fsanitize=address \
-fsanitize=undefined \
-fsanitize=memory \
-fno-optimize-sibling-calls \
-fno-omit-frame-pointer])
AC_SUBST(AM_CFLAGS)
CC_CHECK_FLAGS_APPEND([AM_LDFLAGS],[LDFLAGS],[ \
-fsanitize=address])
AC_SUBST(AM_LDFLAGS)
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
......
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