wok-next diff valgrind/stuff/valgrind-3.6.0-glibc211.u @ rev 9927

Up: tazwok to 4.2.15.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue May 17 17:25:10 2011 +0000 (2011-05-17)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/valgrind/stuff/valgrind-3.6.0-glibc211.u	Tue May 17 17:25:10 2011 +0000
     1.3 @@ -0,0 +1,51 @@
     1.4 +Submitted By: Agathoklis Hatzimanikas <ag at linuxfromscratch dot org>
     1.5 +Date: 2010-01-06
     1.6 +Initial Package Version: 3.5.0
     1.7 +Upstream Status: Uknown
     1.8 +Origin: Gentoo
     1.9 +Description: Allows Valgring to build with glibc-2.11
    1.10 +
    1.11 +diff -ruN valgrind-3.5.0/configure.in valgrind-3.5.0-fixed/configure.in
    1.12 +--- valgrind-3.5.0/configure.in	2009-11-07 23:34:37.000000000 +0100
    1.13 ++++ valgrind-3.5.0-fixed/configure.in	2009-11-07 23:38:14.000000000 +0100
    1.14 +@@ -656,6 +656,16 @@
    1.15 + ],
    1.16 + GLIBC_VERSION="2.10")
    1.17 + 
    1.18 ++AC_EGREP_CPP([GLIBC_211], [
    1.19 ++#include <features.h>
    1.20 ++#ifdef __GNU_LIBRARY__
    1.21 ++ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 11)
    1.22 ++  GLIBC_211
    1.23 ++ #endif
    1.24 ++#endif
    1.25 ++],
    1.26 ++GLIBC_VERSION="2.11")
    1.27 ++
    1.28 + AC_EGREP_CPP([AIX5_LIBC], [
    1.29 + #include <standards.h>
    1.30 + #if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530)
    1.31 +@@ -742,6 +752,13 @@
    1.32 + 	DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
    1.33 + 	DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
    1.34 + 	;;
    1.35 ++     2.11)
    1.36 ++	AC_MSG_RESULT(2.11 family)
    1.37 ++	AC_DEFINE([GLIBC_2_11], 1, [Define to 1 if you're using glibc 2.11.x])
    1.38 ++	DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
    1.39 ++	DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
    1.40 ++	DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
    1.41 ++	;;
    1.42 +      aix5)
    1.43 + 	AC_MSG_RESULT(AIX 5.1 or 5.2 or 5.3)
    1.44 + 	AC_DEFINE([AIX5_LIBC], 1, [Define to 1 if you're using AIX 5.1 or 5.2 or 5.3])
    1.45 +@@ -755,7 +772,7 @@
    1.46 + 
    1.47 +      *)
    1.48 +	AC_MSG_RESULT([unsupported version ${GLIBC_VERSION}])
    1.49 +-	AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.12])
    1.50 ++	AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.11])
    1.51 + 	AC_MSG_ERROR([or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION])
    1.52 + 	AC_MSG_ERROR([or Darwin libc])
    1.53 + 	;;
    1.54 +