commit:     2628627eb9ee2ce925cd5c7cab6650d1f88606e8
Author:     Manoj Gupta <manojgupta <AT> google <DOT> com>
AuthorDate: Tue Jun  9 21:18:02 2020 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun Jun 14 16:07:54 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2628627e

net-dns/libidn2: Respect portage host cc

Pass CC_FOR_BUILD to configure. Otherwise it invokes gcc 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/16152

 net-dns/libidn2/libidn2-2.3.0.ebuild | 3 ++-
 net-dns/libidn2/libidn2-99999.ebuild | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/net-dns/libidn2/libidn2-2.3.0.ebuild 
b/net-dns/libidn2/libidn2-2.3.0.ebuild
index 3fb6a937588..e9f81534454 100644
--- a/net-dns/libidn2/libidn2-2.3.0.ebuild
+++ b/net-dns/libidn2/libidn2-2.3.0.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit multilib-minimal
+inherit multilib-minimal toolchain-funcs
 
 DESCRIPTION="An implementation of the IDNA2008 specifications (RFCs 5890, 
5891, 5892, 5893)"
 HOMEPAGE="https://www.gnu.org/software/libidn/#libidn2 
https://gitlab.com/libidn/libidn2";
@@ -40,6 +40,7 @@ src_prepare() {
 
 multilib_src_configure() {
        econf \
+               CC_FOR_BUILD="$(tc-getBUILD_CC)" \
                $(use_enable static-libs static) \
                --disable-doc \
                --disable-gcc-warnings \

diff --git a/net-dns/libidn2/libidn2-99999.ebuild 
b/net-dns/libidn2/libidn2-99999.ebuild
index c678e41668b..8b64b763df1 100644
--- a/net-dns/libidn2/libidn2-99999.ebuild
+++ b/net-dns/libidn2/libidn2-99999.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit autotools git-r3 multilib-minimal
+inherit autotools git-r3 multilib-minimal toolchain-funcs
 
 DESCRIPTION="An implementation of the IDNA2008 specifications (RFCs 5890, 
5891, 5892, 5893)"
 HOMEPAGE="https://www.gnu.org/software/libidn/#libidn2 
https://gitlab.com/libidn/libidn2";
@@ -53,6 +53,7 @@ src_prepare() {
 
 multilib_src_configure() {
        econf \
+               CC_FOR_BUILD="$(tc-getBUILD_CC)" \
                $(use_enable static-libs static) \
                --disable-doc \
                --disable-gcc-warnings \

Reply via email to