/[gentoo-x86]/dev-util/valgrind/files/valgrind-3.5.0-glibc-2.12.patch
Gentoo

Contents of /dev-util/valgrind/files/valgrind-3.5.0-glibc-2.12.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Aug 19 17:58:17 2010 UTC (4 years, 4 months ago) by ssuominen
Branch: MAIN
Fix building with recent glibc wrt #332871 by Michal Vaner.
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 http://cvs.fedoraproject.org/viewvc/rpms/valgrind/devel/valgrind-3.5.0-glibc-2.12.patch?view=log
2
3 --- configure.in
4 +++ configure.in
5 @@ -666,6 +666,16 @@ AC_EGREP_CPP([GLIBC_211], [
6 ],
7 GLIBC_VERSION="2.11")
8
9 +AC_EGREP_CPP([GLIBC_212], [
10 +#include <features.h>
11 +#ifdef __GNU_LIBRARY__
12 + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 12)
13 + GLIBC_212
14 + #endif
15 +#endif
16 +],
17 +GLIBC_VERSION="2.12")
18 +
19 AC_EGREP_CPP([AIX5_LIBC], [
20 #include <standards.h>
21 #if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530)
22 @@ -759,6 +769,13 @@ case "${GLIBC_VERSION}" in
23 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
24 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
25 ;;
26 + 2.12)
27 + AC_MSG_RESULT(2.12 family)
28 + AC_DEFINE([GLIBC_2_12], 1, [Define to 1 if you're using glibc 2.12.x])
29 + DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
30 + DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
31 + DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
32 + ;;
33 aix5)
34 AC_MSG_RESULT(AIX 5.1 or 5.2 or 5.3)
35 AC_DEFINE([AIX5_LIBC], 1, [Define to 1 if you're using AIX 5.1 or 5.2 or 5.3])
36 @@ -772,7 +789,7 @@ case "${GLIBC_VERSION}" in
37
38 *)
39 AC_MSG_RESULT(unsupported version)
40 - AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.11])
41 + AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.12])
42 AC_MSG_ERROR([or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION])
43 AC_MSG_ERROR([or Darwin libc])
44 ;;
45 --- config.h.in
46 +++ config.h.in
47 @@ -18,6 +18,9 @@
48 /* Define to 1 if you're using glibc 2.11.x */
49 #undef GLIBC_2_11
50
51 +/* Define to 1 if you're using glibc 2.12.x */
52 +#undef GLIBC_2_12
53 +
54 /* Define to 1 if you're using glibc 2.2.x */
55 #undef GLIBC_2_2
56

  ViewVC Help
Powered by ViewVC 1.1.20