diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-01-03 21:03:37 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-01-03 21:03:37 +0100 |
commit | 982187afb575e41b45e921194d3d6857bd094881 (patch) | |
tree | 7e92df97ef6d7d9370b3ff4cd6b450944253d14a /configure.ac | |
parent | Merge pull request #5604 from qlyoung/add-ubsan-option (diff) | |
download | frr-982187afb575e41b45e921194d3d6857bd094881.tar.xz frr-982187afb575e41b45e921194d3d6857bd094881.zip |
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>
Diffstat (limited to 'configure.ac')
-rwxr-xr-x | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index a9784842e..0694e3ed2 100755 --- a/configure.ac +++ b/configure.ac @@ -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]) |