[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Forcing the use of kgcc



Richard Lowe wrote:
> 
> * Barrie Bremner (TheEnglishman [at] ecosse.net) wrote:
> > Richard Lowe wrote:
> > >
> > > * Barrie Bremner (TheEnglishman [at] ecosse.net) wrote:
> > > >
> > > >  OK, so RedHat are wierdos - including a CVS snapshot for gcc...
> > > >
> > > >  wierder still is the fact that "kgcc" which is used for kernel rebuilds
> > > > is gcc-2.95.2...
> > > >
> > > >  How do I force my system to use kgcc?
> > > >
> > > >  The latest 2.2.18-pre kernels do it automagically, but how do I do for
> > > > kernels that don't do their own magic?
> > >
> > > Now this is just a guess (not very helpful I know, but I'm trying),
> > >
> > > export CC=kgcc
> > >
> > > before doing the build.
> >
> >
> >  Mmmm. Found some stuff in the kernel archives, recommending changing
> > the /usr/src/linux/Makefile.
> >
> >  HOSTCC=kgcc
> >
> >  running a rebuild as I type....and I've just checked, it fails. No
> > bzImage...few errors there.
> >
> >  Grrr.
> 
> http://www.redhat.com/support/docs/gotchas/7.0/gotchas-7-6.html
> 
> basically
> 
> change:
>   CC      =$(CROSS_COMPILE)gcc -D__KERNEL__ -I$(HPATH)
> 
> for:
>   CC      =$(CROSS_COMPILE)kgcc -D__KERNEL__ -I$(HPATH)
> 
> in the top level Makefile (/usr/src/linux/Makefile)
> 
>

 Thanks very much, Richard. I wish RH would link these pages from
somewhere obvious...

 Baz.
--
Barrie J. Bremner

Email:     TheEnglishman [at] ecosse.net
           (PGP public key available at pgp.mit.edu)

URL:       http://www.geocities.com/thefatenglishman

Telephone: UK 01672 811246

 The answer to your question is...Welcome to tomorrow!
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.