0002-disable-sanitizer.patch 1009 B

12345678910111213141516171819202122232425
  1. Disable sanitizer checks, they're busted.
  2. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  3. diff -Nura libmemcached-1.0.18.orig/m4/ax_harden_compiler_flags.m4 libmemcached-1.0.18/m4/ax_harden_compiler_flags.m4
  4. --- libmemcached-1.0.18.orig/m4/ax_harden_compiler_flags.m4 2014-11-13 08:07:09.011614311 -0300
  5. +++ libmemcached-1.0.18/m4/ax_harden_compiler_flags.m4 2014-11-13 08:07:52.406092440 -0300
  6. @@ -222,8 +222,6 @@
  7. # GCC 4.5 removed this.
  8. # _APPEND_COMPILE_FLAGS_ERROR([-Wunreachable-code])
  9. - _SET_SANITIZE_FLAGS
  10. -
  11. AS_IF([test "x$ax_enable_debug" = xno],
  12. [AS_IF([test "x$ac_cv_vcs_checkout" = xyes],
  13. [AS_IF([test "x${host_os}" != "xmingw"],
  14. @@ -337,8 +335,6 @@
  15. _APPEND_COMPILE_FLAGS_ERROR([-fstack-protector-all])
  16. ])])])])
  17. - _SET_SANITIZE_FLAGS
  18. -
  19. AS_IF([test "x$ac_cv_warnings_as_errors" = xyes],
  20. [AX_APPEND_FLAG([-Werror])])
  21. AC_LANG_POP([C++])