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 ([EMAIL PROTECTED]) (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
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to