summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-05-30 13:15:12 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2020-06-03 08:55:32 +0100
commit3dd41142d73f41e2528eefa32e760fc3083001ee (patch)
treeaf3765fa813b35637357502ec1f52e932ba5fdbe /eclass
parentsci-physics/geant: update HOMEPAGE (diff)
downloadgentoo-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.eclass1
1 files changed, 1 insertions, 0 deletions
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
}