On Sat, 30 May 2020 09:59:16 -0700 Manoj Gupta <manojgu...@google.com> wrote:
> Also see https://bugs.chromium.org/p/chromium/issues/detail?id=1088210 on > Chrome OS. > > Verified that this fixes the linux-headers build issue when gcc links are > not installed. > > Thanks, > Manoj > > On Sat, May 30, 2020 at 5:24 AM Sergei Trofimovich <sly...@gentoo.org> > wrote: > > > 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. > > > > CC: ker...@gentoo.org > > Reported-by: Agostino Sarubbo > > https://bugs.gentoo.org/725878 > > Signed-off-by: Sergei Trofimovich <sly...@gentoo.org> > > --- > > eclass/kernel-2.eclass | 1 + > > 1 file changed, 1 insertion(+) > > > > 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 > > } > > > > -- > > 2.26.2 Pushed as: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3dd41142d73f41e2528eefa32e760fc3083001ee -- Sergei