rev |
line source |
erjo@5890
|
1 Submitted By: Agathoklis Hatzimanikas <ag at linuxfromscratch dot org>
|
erjo@5890
|
2 Date: 2010-01-06
|
erjo@5890
|
3 Initial Package Version: 3.5.0
|
erjo@5890
|
4 Upstream Status: Uknown
|
erjo@5890
|
5 Origin: Gentoo
|
erjo@5890
|
6 Description: Allows Valgring to build with glibc-2.11
|
erjo@5890
|
7
|
erjo@5890
|
8 diff -ruN valgrind-3.5.0/configure.in valgrind-3.5.0-fixed/configure.in
|
erjo@5890
|
9 --- valgrind-3.5.0/configure.in 2009-11-07 23:34:37.000000000 +0100
|
erjo@5890
|
10 +++ valgrind-3.5.0-fixed/configure.in 2009-11-07 23:38:14.000000000 +0100
|
erjo@5890
|
11 @@ -656,6 +656,16 @@
|
erjo@5890
|
12 ],
|
erjo@5890
|
13 GLIBC_VERSION="2.10")
|
erjo@5890
|
14
|
erjo@5890
|
15 +AC_EGREP_CPP([GLIBC_211], [
|
erjo@5890
|
16 +#include <features.h>
|
erjo@5890
|
17 +#ifdef __GNU_LIBRARY__
|
erjo@5890
|
18 + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 11)
|
erjo@5890
|
19 + GLIBC_211
|
erjo@5890
|
20 + #endif
|
erjo@5890
|
21 +#endif
|
erjo@5890
|
22 +],
|
erjo@5890
|
23 +GLIBC_VERSION="2.11")
|
erjo@5890
|
24 +
|
erjo@5890
|
25 AC_EGREP_CPP([AIX5_LIBC], [
|
erjo@5890
|
26 #include <standards.h>
|
erjo@5890
|
27 #if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530)
|
erjo@5890
|
28 @@ -742,6 +752,13 @@
|
erjo@5890
|
29 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
|
erjo@5890
|
30 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
|
erjo@5890
|
31 ;;
|
erjo@5890
|
32 + 2.11)
|
erjo@5890
|
33 + AC_MSG_RESULT(2.11 family)
|
erjo@5890
|
34 + AC_DEFINE([GLIBC_2_11], 1, [Define to 1 if you're using glibc 2.11.x])
|
erjo@5890
|
35 + DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
|
erjo@5890
|
36 + DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
|
erjo@5890
|
37 + DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
|
erjo@5890
|
38 + ;;
|
erjo@5890
|
39 aix5)
|
erjo@5890
|
40 AC_MSG_RESULT(AIX 5.1 or 5.2 or 5.3)
|
erjo@5890
|
41 AC_DEFINE([AIX5_LIBC], 1, [Define to 1 if you're using AIX 5.1 or 5.2 or 5.3])
|
erjo@5890
|
42 @@ -755,7 +772,7 @@
|
erjo@5890
|
43
|
erjo@5890
|
44 *)
|
erjo@5890
|
45 AC_MSG_RESULT(unsupported version)
|
erjo@5890
|
46 - AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.10])
|
erjo@5890
|
47 + AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.11])
|
erjo@5890
|
48 AC_MSG_ERROR([or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION])
|
erjo@5890
|
49 AC_MSG_ERROR([or Darwin libc])
|
erjo@5890
|
50 ;;
|
erjo@5890
|
51
|