summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/gmp/gmp-5.1.2.ebuild')
-rw-r--r--dev-libs/gmp/gmp-5.1.2.ebuild13
1 files changed, 8 insertions, 5 deletions
diff --git a/dev-libs/gmp/gmp-5.1.2.ebuild b/dev-libs/gmp/gmp-5.1.2.ebuild
index 2aa5764c3fc8..baa4a6d20bc3 100644
--- a/dev-libs/gmp/gmp-5.1.2.ebuild
+++ b/dev-libs/gmp/gmp-5.1.2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/gmp-5.1.2.ebuild,v 1.1 2013/05/21 18:48:02 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/gmp-5.1.2.ebuild,v 1.2 2013/05/26 16:14:48 vapier Exp $
inherit flag-o-matic eutils libtool unpacker toolchain-funcs
@@ -73,10 +73,13 @@ src_compile() {
if use pgo ; then
emake -j1 -C tune tuneup || die
- rm gmp-mparam.h || die
- ./tune/tuneup | tee gmp-mparam.h
- emake clean || die
- emake || die
+ ebegin "Trying to generate tuned data"
+ ./tune/tuneup | tee gmp.mparam.h.new
+ if eend $(( 0 + ${PIPESTATUS[*]/#/+} )) ; then
+ mv gmp-mparam.h.new gmp-mparam.h
+ emake clean || die
+ emake || die
+ fi
fi
}