| 1 | # Copyright 1999-2006 Gentoo Foundation |
1 | # Copyright 1999-2006 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/dev-util/valgrind/Attic/valgrind-3.1.1.ebuild,v 1.3 2006/06/09 20:01:40 griffon26 Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/dev-util/valgrind/Attic/valgrind-3.1.1.ebuild,v 1.4 2006/06/14 17:07:34 griffon26 Exp $ |
| 4 | |
4 | |
| 5 | inherit autotools eutils flag-o-matic |
5 | inherit autotools eutils flag-o-matic toolchain-funcs |
| 6 | |
6 | |
| 7 | DESCRIPTION="An open-source memory debugger for GNU/Linux" |
7 | DESCRIPTION="An open-source memory debugger for GNU/Linux" |
| 8 | HOMEPAGE="http://www.valgrind.org" |
8 | HOMEPAGE="http://www.valgrind.org" |
| 9 | SRC_URI="http://www.valgrind.org/downloads/${P}.tar.bz2" |
9 | SRC_URI="http://www.valgrind.org/downloads/${P}.tar.bz2" |
| 10 | |
10 | |
| … | |
… | |
| 51 | filter-flags -fomit-frame-pointer |
51 | filter-flags -fomit-frame-pointer |
| 52 | filter-flags -fpie |
52 | filter-flags -fpie |
| 53 | filter-flags -fstack-protector |
53 | filter-flags -fstack-protector |
| 54 | replace-flags -ggdb3 -ggdb2 |
54 | replace-flags -ggdb3 -ggdb2 |
| 55 | |
55 | |
|
|
56 | # gcc 3.3.x fails to compile valgrind with -O3 (bug #129776) |
|
|
57 | if [ "$(gcc-version)" == "3.3" ] && is-flagq -O3; then |
|
|
58 | ewarn "GCC 3.3 cannot compile valgrind with -O3 in CFLAGS, using -O2 instead." |
|
|
59 | replace-flags -O3 -O2 |
|
|
60 | fi |
|
|
61 | |
| 56 | # Optionally build in X suppression files |
62 | # Optionally build in X suppression files |
| 57 | use X && myconf="--with-x" || myconf="--with-x=no" |
63 | use X && myconf="--with-x" || myconf="--with-x=no" |
| 58 | |
64 | |
| 59 | econf ${myconf} || die "Configure failed!" |
65 | econf ${myconf} || die "Configure failed!" |
| 60 | emake || die "Make failed!" |
66 | emake || die "Make failed!" |