libidn2: Respect portage host cc
Pass CC_FOR_BUILD to configure. Otherwise it invokes gcc instead of portage
specified HOST/BUILD CC.
Gentoo PR: https://github.com/gentoo/gentoo/pull/16151
BUG=chromium:979916, chromium:991812
TEST=CQ
Change-Id: Ib38b77be2a4ad27314409d2a07943383a83ece24
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/overlays/portage-stable/+/2240125
Tested-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: George Burgess <gbiv@chromium.org>
diff --git a/net-dns/libidn2/libidn2-2.0.4.ebuild b/net-dns/libidn2/libidn2-2.0.4-r1.ebuild
similarity index 90%
rename from net-dns/libidn2/libidn2-2.0.4.ebuild
rename to net-dns/libidn2/libidn2-2.0.4-r1.ebuild
index b4463d9..89375e2 100644
--- a/net-dns/libidn2/libidn2-2.0.4.ebuild
+++ b/net-dns/libidn2/libidn2-2.0.4-r1.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=6
-inherit eutils flag-o-matic multilib-minimal
+inherit eutils flag-o-matic 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/jas/libidn2"
@@ -39,6 +39,7 @@
multilib_src_configure() {
econf \
+ CC_FOR_BUILD="$(tc-getBUILD_CC)" \
$(use_enable static-libs static) \
--disable-doc \
--disable-gtk-doc