]> err.no Git - linux-2.6/commit
scripts/ver_linux use 'gcc -dumpversion'
authorGabriel C <nix.or.die@googlemail.com>
Wed, 21 May 2008 18:36:19 +0000 (20:36 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Sun, 25 May 2008 21:02:43 +0000 (23:02 +0200)
commit656a3f797889dafcce2f5b8b222ad66e9974b6f7
tree19ff97ddbe319f45221699a75889315781a1caac
parenteb90d81d03c0917b0fd629f6342554a3b58ea52c
scripts/ver_linux use 'gcc -dumpversion'

These magic greps and hacks in ver_linux to get the gcc version always break after some gcc releases.

Since now gcc >4.3 allows compiling with '--with-pkgversion' ( which can be everything 'My Cool Gcc' or something )
ver_linux will report random junk for these.

Simply use 'gcc -dumpversion' to get the gcc version which should always work.

Signed-off-by: Gabriel C <nix.or.die@googlemail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/ver_linux