diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-05-30 13:15:12 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-06-03 08:55:32 +0100 |
commit | 3dd41142d73f41e2528eefa32e760fc3083001ee (patch) | |
tree | af3765fa813b35637357502ec1f52e932ba5fdbe /eclass | |
parent | sci-physics/geant: update HOMEPAGE (diff) | |
download | gentoo-3dd41142d73f41e2528eefa32e760fc3083001ee.tar.gz gentoo-3dd41142d73f41e2528eefa32e760fc3083001ee.tar.bz2 gentoo-3dd41142d73f41e2528eefa32e760fc3083001ee.zip |
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@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kernel-2.eclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass index 930bcf22e29e..04edee339306 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 } |