configure: add sanitizer flags to LDFLAGS as well

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2021-09-01 09:46:58 +02:00
parent 4d23944a90
commit 37acd20e44
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -479,6 +479,11 @@ if test "x$enable_sanitizers" = "xyes"; then
-fno-omit-frame-pointer])
AC_SUBST(AM_CFLAGS)
CC_CHECK_FLAGS_APPEND([AM_LDFLAGS],[LDFLAGS],[ \
-fsanitize=address \
-fsanitize=undefined])
AC_SUBST(AM_LDFLAGS)
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])