build: explicitly enable leak checking

This commit is contained in:
Danny Robson 2014-10-21 19:38:40 +11:00
parent 9ffaa5782b
commit 7278eff60a

View File

@ -161,8 +161,10 @@ 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_COMPILE_FLAGS([-fsanitize=leak], [], [-Werror])
AX_APPEND_LINK_FLAGS([-fsanitize=address], [], [-Werror])
AX_APPEND_LINK_FLAGS([-fsanitize=undefined], [], [-Werror])
AX_APPEND_LINK_FLAGS([-fsanitize=leak], [], [-Werror])
])
AX_APPEND_COMPILE_FLAGS([-ggdb], [], [-Werror])