Fwd: LFS Script suggestion

Barius Drubeck barius.drubeck at gmail.com
Fri Feb 2 08:08:04 PST 2007


On Tuesday 30 January 2007 05:12, Ismael Luceno wrote:
> Bruce Dubbs escribió:
> > Dan Nicholson wrote:
> > How about:
> >
> > $ sed -r 's/.*(gcc version [01234567890\.]+).*/\1/' /proc/version
>
> This string depends on the locale in use when the kernel was
> compiled, so it will not work on all systems, it needs to be more
> generic:
>
> $ cat /proc/version
> Linux version 2.6.19.1 (ismaell at localhost) (gcc versión 4.0.3) #1
> Fri Dec 15 02:19:26 UYT 2006
>
> $ sed -r 's/.*\((gcc .+ [01234567890\.]+)\).*/\1/' /proc/version
> gcc versión 4.0.3

Shouldn't the toolchain and kernel always be compiled in the C locale?

-- 
Barius



More information about the lfs-dev mailing list