--- mpfr-2.3.1.ebuild.orig 2008-07-03 14:16:58.000000000 +0300 +++ mpfr-2.3.1.ebuild 2008-07-03 14:11:23.000000000 +0300 @@ -3,7 +3,7 @@ # $Header: /var/cvsroot/gentoo-x86/dev-libs/mpfr/mpfr-2.3.1.ebuild,v 1.7 2008/05/02 04:55:40 vapier Exp $ # NOTE: we cannot depend on autotools here starting with gcc-4.3.x -inherit eutils +inherit eutils toolchain-funcs MY_PV=${PV/_p*} MY_P=${PN}-${MY_PV} @@ -24,6 +24,9 @@ src_unpack() { unpack "${MY_P}.tar.bz2" cd "${S}" + if tc-is-cross-compiler ; then + epatch "${FILESDIR}"/${P}-disable-rpath.patch + fi [[ ${PLEVEL} == ${PV} ]] && return 0 for ((i=1; i<=PLEVEL; ++i)) ; do patch=patch$(printf '%02d' ${i})