Gentoo Archives: gentoo-dev

From: Sergei Trofimovich <slyfox@g.o>
To: Manoj Gupta <manojgupta@××××××.com>, gentoo-dev@l.g.o
Cc: kernel@g.o
Subject: Re: [gentoo-dev] [PATCH] kernel-2.eclass: use $(CC) as HOSTCC, bug #725878
Date: Wed, 03 Jun 2020 07:58:00
Message-Id: 20200603085751.0439e2a7@sf
In Reply to: Re: [gentoo-dev] [PATCH] kernel-2.eclass: use $(CC) as HOSTCC, bug #725878 by Manoj Gupta
1 On Sat, 30 May 2020 09:59:16 -0700
2 Manoj Gupta <manojgupta@××××××.com> wrote:
3
4 > Also see https://bugs.chromium.org/p/chromium/issues/detail?id=1088210 on
5 > Chrome OS.
6 >
7 > Verified that this fixes the linux-headers build issue when gcc links are
8 > not installed.
9 >
10 > Thanks,
11 > Manoj
12 >
13 > On Sat, May 30, 2020 at 5:24 AM Sergei Trofimovich <slyfox@g.o>
14 > wrote:
15 >
16 > > Before the change HOSTCC always used gcc. This was
17 > > detected by Agostino on linux-headers package.
18 > >
19 > > After the change HOSTCC uses user-specified CC
20 > > (or BUILD_CC). Tested on native linux-headers
21 > > and on cross-*/linux-headers.
22 > >
23 > > CC: kernel@g.o
24 > > Reported-by: Agostino Sarubbo
25 > > https://bugs.gentoo.org/725878
26 > > Signed-off-by: Sergei Trofimovich <slyfox@g.o>
27 > > ---
28 > > eclass/kernel-2.eclass | 1 +
29 > > 1 file changed, 1 insertion(+)
30 > >
31 > > diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
32 > > index 930bcf22e29..04edee33930 100644
33 > > --- a/eclass/kernel-2.eclass
34 > > +++ b/eclass/kernel-2.eclass
35 > > @@ -712,6 +712,7 @@ env_setup_xmakeopts() {
36 > > elif type -p ${CHOST}-ar > /dev/null ; then
37 > > xmakeopts="${xmakeopts} CROSS_COMPILE=${CHOST}-"
38 > > fi
39 > > + xmakeopts="${xmakeopts} HOSTCC=$(tc-getBUILD_CC)"
40 > > export xmakeopts
41 > > }
42 > >
43 > > --
44 > > 2.26.2
45
46 Pushed as:
47 https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3dd41142d73f41e2528eefa32e760fc3083001ee
48
49 --
50
51 Sergei