1 |
Also see https://bugs.chromium.org/p/chromium/issues/detail?id=1088210 on |
2 |
Chrome OS. |
3 |
|
4 |
Verified that this fixes the linux-headers build issue when gcc links are |
5 |
not installed. |
6 |
|
7 |
Thanks, |
8 |
Manoj |
9 |
|
10 |
On Sat, May 30, 2020 at 5:24 AM Sergei Trofimovich <slyfox@g.o> |
11 |
wrote: |
12 |
|
13 |
> Before the change HOSTCC always used gcc. This was |
14 |
> detected by Agostino on linux-headers package. |
15 |
> |
16 |
> After the change HOSTCC uses user-specified CC |
17 |
> (or BUILD_CC). Tested on native linux-headers |
18 |
> and on cross-*/linux-headers. |
19 |
> |
20 |
> CC: kernel@g.o |
21 |
> Reported-by: Agostino Sarubbo |
22 |
> https://bugs.gentoo.org/725878 |
23 |
> Signed-off-by: Sergei Trofimovich <slyfox@g.o> |
24 |
> --- |
25 |
> eclass/kernel-2.eclass | 1 + |
26 |
> 1 file changed, 1 insertion(+) |
27 |
> |
28 |
> diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass |
29 |
> index 930bcf22e29..04edee33930 100644 |
30 |
> --- a/eclass/kernel-2.eclass |
31 |
> +++ b/eclass/kernel-2.eclass |
32 |
> @@ -712,6 +712,7 @@ env_setup_xmakeopts() { |
33 |
> elif type -p ${CHOST}-ar > /dev/null ; then |
34 |
> xmakeopts="${xmakeopts} CROSS_COMPILE=${CHOST}-" |
35 |
> fi |
36 |
> + xmakeopts="${xmakeopts} HOSTCC=$(tc-getBUILD_CC)" |
37 |
> export xmakeopts |
38 |
> } |
39 |
> |
40 |
> -- |
41 |
> 2.26.2 |
42 |
> |
43 |
> |
44 |
> |