You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1020 B

  1. From 65209e4fbf30d09dda89aa4b1d831461506848d7 Mon Sep 17 00:00:00 2001
  2. From: Rafael Zalamena <rzalamena@opensourcerouting.org>
  3. Date: Tue, 8 Oct 2019 20:47:38 -0300
  4. Subject: [PATCH] configure.ac: fix memory sanitizer test
  5. We should test for `-fsanitize=memory` instead of `-fsanitize=thread`
  6. when enabling memory sanitizer. While here, fix the error message.
  7. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
  8. ---
  9. configure.ac | 4 ++--
  10. 1 file changed, 2 insertions(+), 2 deletions(-)
  11. diff --git a/configure.ac b/configure.ac
  12. index 88f1c4f627..730e2ae6f0 100755
  13. --- a/configure.ac
  14. +++ b/configure.ac
  15. @@ -328,8 +328,8 @@ if test "$enable_thread_sanitizer" = "yes"; then
  16. ])
  17. fi
  18. if test "$enable_memory_sanitizer" = "yes"; then
  19. - AC_C_FLAG([-fsanitize=thread -fPIE -pie], [
  20. - AC_MSG_ERROR([$CC does not support Thread Sanitizer.])
  21. + AC_C_FLAG([-fsanitize=memory -fPIE -pie], [
  22. + AC_MSG_ERROR([$CC does not support Memory Sanitizer.])
  23. ], [
  24. SAN_FLAGS="-fsanitize=memory -fPIE -pie"
  25. ])