build: add 'undefined' sanitizer for debug

This commit is contained in:
Danny Robson 2014-07-07 15:19:28 +10:00
parent f46c090c72
commit 39caa4c365

View File

@ -149,7 +149,9 @@ AS_IF([test "x$ac_cv_search_clock_gettime" == "x-*"], [
AS_IF([test "x$enable_debugging" = "xyes"], [
AS_IF([test "x$enable_sanitizer" = "xyes"], [
AX_APPEND_COMPILE_FLAGS([-fsanitize=address], [], [-Werror])
AX_APPEND_COMPILE_FLAGS([-fsanitize=undefined], [], [-Werror])
AX_APPEND_LINK_FLAGS([-fsanitize=address], [], [-Werror])
AX_APPEND_LINK_FLAGS([-fsanitize=undefined], [], [-Werror])
])
AX_APPEND_COMPILE_FLAGS([-ggdb], [], [-Werror])