1 |
commit: 3dd41142d73f41e2528eefa32e760fc3083001ee |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 30 12:15:12 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 3 07:55:32 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3dd41142 |
7 |
|
8 |
kernel-2.eclass: use $(CC) as HOSTCC |
9 |
|
10 |
Before the change HOSTCC always used gcc. This was |
11 |
detected by Agostino on linux-headers package. |
12 |
|
13 |
After the change HOSTCC uses user-specified CC |
14 |
(or BUILD_CC). Tested on native linux-headers |
15 |
and on cross-*/linux-headers. |
16 |
|
17 |
Reported-by: Agostino Sarubbo |
18 |
https://bugs.gentoo.org/725878 |
19 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
20 |
|
21 |
eclass/kernel-2.eclass | 1 + |
22 |
1 file changed, 1 insertion(+) |
23 |
|
24 |
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass |
25 |
index 930bcf22e29..04edee33930 100644 |
26 |
--- a/eclass/kernel-2.eclass |
27 |
+++ b/eclass/kernel-2.eclass |
28 |
@@ -712,6 +712,7 @@ env_setup_xmakeopts() { |
29 |
elif type -p ${CHOST}-ar > /dev/null ; then |
30 |
xmakeopts="${xmakeopts} CROSS_COMPILE=${CHOST}-" |
31 |
fi |
32 |
+ xmakeopts="${xmakeopts} HOSTCC=$(tc-getBUILD_CC)" |
33 |
export xmakeopts |
34 |
} |