summaryrefslogtreecommitdiff
path: root/package/valgrind/patches/patch-configure_ac
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-11-07 16:55:09 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-11-07 16:55:09 +0100
commitb59da8fc7b46ee62cbe9eb97a05c8a0f1ab75593 (patch)
tree693c02553b84749c1eef6323ff528850c46687f4 /package/valgrind/patches/patch-configure_ac
parent08f64b87c0b6e9a6de7250c616a91830ef447713 (diff)
update valgrind to latest upstream version, strlen is not a function in ld.so in latest glibc/eglibc setups, just remove the redirect for now. enable automatic building of debug subpackages. update TODO
Diffstat (limited to 'package/valgrind/patches/patch-configure_ac')
-rw-r--r--package/valgrind/patches/patch-configure_ac34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/valgrind/patches/patch-configure_ac b/package/valgrind/patches/patch-configure_ac
new file mode 100644
index 000000000..4683f78fa
--- /dev/null
+++ b/package/valgrind/patches/patch-configure_ac
@@ -0,0 +1,34 @@
+--- valgrind-3.9.0.orig/configure.ac 2013-11-01 00:28:16.000000000 +0100
++++ valgrind-3.9.0/configure.ac 2013-11-03 15:21:25.000000000 +0100
+@@ -792,6 +792,15 @@ AC_EGREP_CPP([BIONIC_LIBC], [
+ ],
+ GLIBC_VERSION="bionic")
+
++# not really a version check
++AC_EGREP_CPP([MUSL_LIBC], [
++#if defined(__MUSL__)
++ MUSL_LIBC
++#endif
++],
++GLIBC_VERSION="musl")
++
++
+
+ AC_MSG_CHECKING([the GLIBC_VERSION version])
+
+@@ -928,10 +937,13 @@ case "${GLIBC_VERSION}" in
+ AC_DEFINE([BIONIC_LIBC], 1, [Define to 1 if you're using Bionic])
+ DEFAULT_SUPP="bionic.supp ${DEFAULT_SUPP}"
+ ;;
+-
++ musl)
++ AC_MSG_RESULT(musl)
++ AC_DEFINE([MUSL_LIBC], 1, [Define to 1 if you're using musl])
++ ;;
+ *)
+ AC_MSG_RESULT([unsupported version ${GLIBC_VERSION}])
+- AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.17])
++ AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.18])
+ AC_MSG_ERROR([or Darwin libc])
+ ;;
+ esac