summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2019-10-09 01:47:38 +0200
committerRafael Zalamena <rzalamena@opensourcerouting.org>2019-10-09 02:24:26 +0200
commit65209e4fbf30d09dda89aa4b1d831461506848d7 (patch)
tree80cf86ecc41ee8f68941dc5a7a8d7563b7add089 /configure.ac
parentMerge pull request #5120 from sworleys/PBR-LL-FIX (diff)
downloadfrr-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-xconfigure.ac4
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"
])