From 27669c326431f25027aaa62446ad8962b6276d7d Mon Sep 17 00:00:00 2001 From: Sebastien Fabbro Date: Mon, 20 Oct 2008 21:34:16 +0000 Subject: 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) --- sci-mathematics/ginac/ginac-1.4.3.ebuild | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sci-mathematics/ginac/ginac-1.4.3.ebuild') 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) -- cgit v1.2.3-65-gdbad