From: Christian Brauner Date: Wed, 1 Sep 2021 07:46:58 +0000 (+0200) Subject: configure: add sanitizer flags to LDFLAGS as well X-Git-Tag: lxc-4.0.11~144 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6aaa6ece4210e4da7cfd38bd9f19dc3d74d97ab4;p=thirdparty%2Flxc.git configure: add sanitizer flags to LDFLAGS as well Signed-off-by: Christian Brauner --- diff --git a/configure.ac b/configure.ac index db81027d1..1c579d2dc 100644 --- a/configure.ac +++ b/configure.ac @@ -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])