build: link to asan/ubsan for sanitizer
This commit is contained in:
parent
7c55029040
commit
f37654d2bb
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user