mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
configure.ac: make msan & ubsan flags additive
These were setting = SAN_FLAGS, we want to add to the variable. Note MSAN can't be used with any other sanitizer (except UBSan) but the compiler will complain about that if you use it wrong so we don't need to enforce it here. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
f8034506de
commit
982187afb5
|
@ -331,14 +331,14 @@ if test "$enable_memory_sanitizer" = "yes"; then
|
|||
AC_C_FLAG([-fsanitize=memory -fPIE -pie], [
|
||||
AC_MSG_ERROR([$CC does not support Memory Sanitizer.])
|
||||
], [
|
||||
SAN_FLAGS="-fsanitize=memory -fPIE -pie"
|
||||
SAN_FLAGS="$SAN_FLAGS -fsanitize=memory -fPIE -pie"
|
||||
])
|
||||
fi
|
||||
if test "$enable_undefined_sanitizer" = "yes"; then
|
||||
AC_C_FLAG([-fsanitize=undefined], [
|
||||
AC_MSG_ERROR([$CC does not support UndefinedBehaviorSanitizer.])
|
||||
], [
|
||||
SAN_FLAGS="-fsanitize=undefined"
|
||||
SAN_FLAGS="$SAN_FLAGS -fsanitize=undefined"
|
||||
])
|
||||
fi
|
||||
AC_SUBST([SAN_FLAGS])
|
||||
|
|
Loading…
Reference in a new issue