summaryrefslogtreecommitdiffstats
path: root/package/libmemcached/0002-disable-sanitizer.patch
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2014-11-13 08:11:57 -0300
committerPeter Korsgaard <peter@korsgaard.com>2014-11-13 16:25:07 +0100
commitb79587b8254091d74298d76b78b22ff0579af973 (patch)
tree10b39dc5a52a3b574af56128c1ffff1ced47b460 /package/libmemcached/0002-disable-sanitizer.patch
parent91f9a3ac1f25d4988758fa416b4fda837a486516 (diff)
downloadbuildroot-b79587b8254091d74298d76b78b22ff0579af973.tar.gz
buildroot-b79587b8254091d74298d76b78b22ff0579af973.zip
libmemcached: disable sanitizer
The tests are flawed and we don't generally enable a dozen hardening CFLAGS automatically. Fixes: http://autobuild.buildroot.net/results/a84/a84ab4f0fdea6bbab971ba379e3066cddb25bfaa/ Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/libmemcached/0002-disable-sanitizer.patch')
-rw-r--r--package/libmemcached/0002-disable-sanitizer.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/libmemcached/0002-disable-sanitizer.patch b/package/libmemcached/0002-disable-sanitizer.patch
new file mode 100644
index 0000000000..108da22550
--- /dev/null
+++ b/package/libmemcached/0002-disable-sanitizer.patch
@@ -0,0 +1,25 @@
+Disable sanitizer checks, they're busted.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+
+diff -Nura libmemcached-1.0.18.orig/m4/ax_harden_compiler_flags.m4 libmemcached-1.0.18/m4/ax_harden_compiler_flags.m4
+--- libmemcached-1.0.18.orig/m4/ax_harden_compiler_flags.m4 2014-11-13 08:07:09.011614311 -0300
++++ libmemcached-1.0.18/m4/ax_harden_compiler_flags.m4 2014-11-13 08:07:52.406092440 -0300
+@@ -222,8 +222,6 @@
+ # GCC 4.5 removed this.
+ # _APPEND_COMPILE_FLAGS_ERROR([-Wunreachable-code])
+
+- _SET_SANITIZE_FLAGS
+-
+ AS_IF([test "x$ax_enable_debug" = xno],
+ [AS_IF([test "x$ac_cv_vcs_checkout" = xyes],
+ [AS_IF([test "x${host_os}" != "xmingw"],
+@@ -337,8 +335,6 @@
+ _APPEND_COMPILE_FLAGS_ERROR([-fstack-protector-all])
+ ])])])])
+
+- _SET_SANITIZE_FLAGS
+-
+ AS_IF([test "x$ac_cv_warnings_as_errors" = xyes],
+ [AX_APPEND_FLAG([-Werror])])
+ AC_LANG_POP([C++])
OpenPOWER on IntegriCloud