SPECS (LINUX_2_6_16): kernel.spec - pass CC to compiler; rel 2

Elan Ruusamäe glen at delfi.ee
Thu Sep 28 20:30:26 CEST 2006


On Thursday 28 September 2006 20:58, Elan Ruusamäe wrote:
> On Thursday 28 September 2006 19:06, Paweł Sikora wrote:
> > On Thursday 28 September 2006 17:32, sparky at pld-linux.org wrote:
> > > On Thu, Sep 28, 2006 at 05:02:24PM +0200, glen wrote:
> > > > Author: glen                         Date: Thu Sep 28 15:02:24 2006
> > > > GMT Module: SPECS                         Tag: LINUX_2_6_16
> > > > ---- Log message:
> > > > - pass CC to compiler; rel 2
> > >
> > > is it crosscompilation-sane ?
> >
> > no!
> > $(HOSTCC) should be set to %{__cc}, $(CC) is used for cross builds.
>
> i want to use distcc for compiling kernel. please make changes so that it's
> possible....
maybe use those macros?

$ grep -r kgcc /usr/lib/rpm/macros.build
%kgcc           %{__cc}
%kgcc_package   gcc

(i never cross-compiled myself so i'm not aware of the problems.).

-- 
glen


More information about the pld-devel-en mailing list