diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2008-10-20 21:34:16 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2008-10-20 21:34:16 +0000 |
commit | 27669c326431f25027aaa62446ad8962b6276d7d (patch) | |
tree | 65c0b3087c19e0cf4c5f01b8dab1a5fbed86e437 /sci-mathematics/ginac/ginac-1.4.3.ebuild | |
parent | Version bump (diff) | |
download | gentoo-2-27669c326431f25027aaa62446ad8962b6276d7d.tar.gz gentoo-2-27669c326431f25027aaa62446ad8962b6276d7d.tar.bz2 gentoo-2-27669c326431f25027aaa62446ad8962b6276d7d.zip |
Filtered optimization more than O1 for gcc<4.2; now passes regression tests
(Portage version: 2.2_rc11/cvs/Linux 2.6.25-gentoo-r7 x86_64)
Diffstat (limited to 'sci-mathematics/ginac/ginac-1.4.3.ebuild')
-rw-r--r-- | sci-mathematics/ginac/ginac-1.4.3.ebuild | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sci-mathematics/ginac/ginac-1.4.3.ebuild b/sci-mathematics/ginac/ginac-1.4.3.ebuild index bc6fcf8c6170..a8623495045e 100644 --- a/sci-mathematics/ginac/ginac-1.4.3.ebuild +++ b/sci-mathematics/ginac/ginac-1.4.3.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/ginac/ginac-1.4.3.ebuild,v 1.4 2008/09/29 14:10:06 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/ginac/ginac-1.4.3.ebuild,v 1.5 2008/10/20 21:34:16 bicatali Exp $ -inherit eutils +inherit eutils flag-o-matic toolchain-funcs DESCRIPTION="C++ library and tools for symbolic calculations" SRC_URI="ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/${P}.tar.bz2" @@ -23,7 +23,10 @@ DEPEND="${RDEPEND} app-text/ptex ) )" src_compile() { - econf || die "econf failed" + [[ $(tc-getCXX) == *g++ ]] && \ + [[ $(gcc-major-version)$(gcc-minor-version) -lt 42 ]] && \ + replace-flags -O? -O1 + econf emake || die "emake failed" if use doc; then # need to run twice to get the references right (you know, latex) |