commit:     3dd41142d73f41e2528eefa32e760fc3083001ee
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat May 30 12:15:12 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Wed Jun  3 07:55:32 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3dd41142

kernel-2.eclass: use $(CC) as HOSTCC

Before the change HOSTCC always used gcc. This was
detected by Agostino on linux-headers package.

After the change HOSTCC uses user-specified CC
(or BUILD_CC). Tested on native linux-headers
and on cross-*/linux-headers.

Reported-by: Agostino Sarubbo
https://bugs.gentoo.org/725878
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 eclass/kernel-2.eclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index 930bcf22e29..04edee33930 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -712,6 +712,7 @@ env_setup_xmakeopts() {
        elif type -p ${CHOST}-ar > /dev/null ; then
                xmakeopts="${xmakeopts} CROSS_COMPILE=${CHOST}-"
        fi
+       xmakeopts="${xmakeopts} HOSTCC=$(tc-getBUILD_CC)"
        export xmakeopts
 }
 

Reply via email to