diff --git a/configure.ac b/configure.ac index 978be263..56c3748d 100644 --- a/configure.ac +++ b/configure.ac @@ -161,9 +161,13 @@ AS_IF([test "x$enable_debugging" = "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_LINK_FLAGS([-lasan], [], [-Werror]) + AX_APPEND_LINK_FLAGS([-lubsan], [], [-Werror]) ]) AX_APPEND_COMPILE_FLAGS([-ggdb], [], [-Werror])