commit:     3370923f46b01137d4e48d89c58a3b13eb2c10a6
Author:     Manoj Gupta <manojgupta <AT> google <DOT> com>
AuthorDate: Wed Jun 10 21:40:11 2020 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Jun 13 14:57:29 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3370923f

sys-devel/flex: Respect portage host cc variable

Pass CC_FOR_BUILD to econf. 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/16177

 sys-devel/flex/flex-2.6.4-r1.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys-devel/flex/flex-2.6.4-r1.ebuild 
b/sys-devel/flex/flex-2.6.4-r1.ebuild
index e040402480d..6d18e263400 100644
--- a/sys-devel/flex/flex-2.6.4-r1.ebuild
+++ b/sys-devel/flex/flex-2.6.4-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI="6"
 
-inherit eutils flag-o-matic libtool ltprune multilib-minimal
+inherit eutils flag-o-matic libtool ltprune multilib-minimal toolchain-funcs
 
 DESCRIPTION="The Fast Lexical Analyzer"
 HOMEPAGE="https://flex.sourceforge.net/ https://github.com/westes/flex";
@@ -50,6 +50,7 @@ multilib_src_configure() {
        # Do not install shared libs #503522
        ECONF_SOURCE=${S} \
        econf \
+               CC_FOR_BUILD="$(tc-getBUILD_CC)" \
                --disable-shared \
                $(use_enable nls)
 }

Reply via email to