mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-06 02:54:40 +00:00
configure: fix sanitizer compilation
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
6f527abc65
commit
cdfa8f13f2
@ -467,10 +467,15 @@ if test "x$enable_sanitizers" = "xyes"; then
|
||||
CC_CHECK_FLAGS_APPEND([AM_CFLAGS],[CFLAGS],[ \
|
||||
-fsanitize=address \
|
||||
-fsanitize=undefined \
|
||||
-fsanitize=memory \
|
||||
-fno-optimize-sibling-calls \
|
||||
-fno-omit-frame-pointer])
|
||||
AC_SUBST(AM_CFLAGS)
|
||||
|
||||
CC_CHECK_FLAGS_APPEND([AM_LDFLAGS],[LDFLAGS],[ \
|
||||
-fsanitize=address])
|
||||
|
||||
AC_SUBST(AM_LDFLAGS)
|
||||
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
|
Loading…
Reference in New Issue
Block a user