commit:     bd783ecfc01f8c5146bec201819ca3a2931758ad
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 17 12:00:10 2017 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Sat Jun 17 14:41:20 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd783ecf

dev-libs/double-conversion: Do not use hardcoded g++ but tc-getCXX to fix cross 
compilation.

Package-Manager: Portage-2.3.6, Repoman-2.3.2

 dev-libs/double-conversion/double-conversion-2.0.1.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dev-libs/double-conversion/double-conversion-2.0.1.ebuild 
b/dev-libs/double-conversion/double-conversion-2.0.1.ebuild
index c7e58c05e29..107df7ef7cf 100644
--- a/dev-libs/double-conversion/double-conversion-2.0.1.ebuild
+++ b/dev-libs/double-conversion/double-conversion-2.0.1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=5
 
-inherit scons-utils eutils
+inherit scons-utils eutils toolchain-funcs
 
 DESCRIPTION="Binary-decimal and decimal-binary conversion routines for IEEE 
doubles"
 HOMEPAGE="https://github.com/google/double-conversion";
@@ -21,6 +21,7 @@ src_prepare() {
 }
 
 src_compile() {
+       sed -i -e "s/g++/$(tc-getCXX)/" SConstruct || die
        escons ${LIBNAME}.so.1
        use static-libs && escons ${LIBNAME}.a
 }

Reply via email to