diff options
author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-10-09 01:47:38 +0200 |
---|---|---|
committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-10-09 02:24:26 +0200 |
commit | 65209e4fbf30d09dda89aa4b1d831461506848d7 (patch) | |
tree | 80cf86ecc41ee8f68941dc5a7a8d7563b7add089 /configure.ac | |
parent | Merge pull request #5120 from sworleys/PBR-LL-FIX (diff) | |
download | frr-65209e4fbf30d09dda89aa4b1d831461506848d7.tar.xz frr-65209e4fbf30d09dda89aa4b1d831461506848d7.zip |
configure.ac: fix memory sanitizer test
We should test for `-fsanitize=memory` instead of `-fsanitize=thread`
when enabling memory sanitizer. While here, fix the error message.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
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 88f1c4f62..730e2ae6f 100755 --- a/configure.ac +++ b/configure.ac @@ -328,8 +328,8 @@ if test "$enable_thread_sanitizer" = "yes"; then ]) fi if test "$enable_memory_sanitizer" = "yes"; then - AC_C_FLAG([-fsanitize=thread -fPIE -pie], [ - AC_MSG_ERROR([$CC does not support Thread Sanitizer.]) + AC_C_FLAG([-fsanitize=memory -fPIE -pie], [ + AC_MSG_ERROR([$CC does not support Memory Sanitizer.]) ], [ SAN_FLAGS="-fsanitize=memory -fPIE -pie" ]) |