mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-26 05:28:07 +00:00
configure: add sanitizer flags to LDFLAGS as well
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
4d23944a90
commit
37acd20e44
@ -479,6 +479,11 @@ if test "x$enable_sanitizers" = "xyes"; then
|
|||||||
-fno-omit-frame-pointer])
|
-fno-omit-frame-pointer])
|
||||||
AC_SUBST(AM_CFLAGS)
|
AC_SUBST(AM_CFLAGS)
|
||||||
|
|
||||||
|
CC_CHECK_FLAGS_APPEND([AM_LDFLAGS],[LDFLAGS],[ \
|
||||||
|
-fsanitize=address \
|
||||||
|
-fsanitize=undefined])
|
||||||
|
AC_SUBST(AM_LDFLAGS)
|
||||||
|
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
|
Loading…
Reference in New Issue
Block a user