commit:     cb368f80e731a0f31cf21ebef28ea3682008783a
Author:     Manoj Gupta <manojgupta <AT> google <DOT> com>
AuthorDate: Thu Jun 11 01:28:58 2020 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Jun 13 14:57:50 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb368f80

dev-lang/yasm:  Respect portage host cc variable

Pass CC_FOR_BUILD and CCLD_FOR_BUILD to econf.
Otherwise it invokes cc instead of portage specified HOST/BUILD CC.

Signed-off-by: Manoj Gupta <manojgupta <AT> google.com>
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/16180

 dev-lang/yasm/yasm-1.3.0.ebuild | 4 +++-
 dev-lang/yasm/yasm-9999.ebuild  | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dev-lang/yasm/yasm-1.3.0.ebuild b/dev-lang/yasm/yasm-1.3.0.ebuild
index fab7341fef1..7104a751fd0 100644
--- a/dev-lang/yasm/yasm-1.3.0.ebuild
+++ b/dev-lang/yasm/yasm-1.3.0.ebuild
@@ -5,7 +5,7 @@ EAPI=5
 
 PYTHON_COMPAT=( python2_7 )
 
-inherit python-single-r1
+inherit python-single-r1 toolchain-funcs
 
 DESCRIPTION="An assembler for x86 and x86_64 instruction sets"
 HOMEPAGE="http://yasm.tortall.net/";
@@ -34,6 +34,8 @@ src_configure() {
 
        XMLTO=: \
        econf \
+               CC_FOR_BUILD=$(tc-getBUILD_CC) \
+               CCLD_FOR_BUILD=$(tc-getBUILD_CC) \
                $(use_enable python) \
                $(use_enable python python-bindings) \
                $(use_enable nls)

diff --git a/dev-lang/yasm/yasm-9999.ebuild b/dev-lang/yasm/yasm-9999.ebuild
index cf48d28e862..ccd86bc0090 100644
--- a/dev-lang/yasm/yasm-9999.ebuild
+++ b/dev-lang/yasm/yasm-9999.ebuild
@@ -4,7 +4,7 @@
 EAPI=7
 PYTHON_COMPAT=( python2_7 )
 
-inherit python-single-r1
+inherit python-single-r1 toolchain-funcs
 
 if [[ ${PV} == 9999* ]] ; then
        EGIT_REPO_URI="https://github.com/yasm/yasm.git";
@@ -60,6 +60,8 @@ src_configure() {
        use python && python_setup
 
        local myconf=(
+               CC_FOR_BUILD=$(tc-getBUILD_CC) \
+               CCLD_FOR_BUILD=$(tc-getBUILD_CC) \
                --disable-warnerror
                $(use_enable python)
                $(use_enable python python-bindings)

Reply via email to