Re: [PATCH] update ver_linux script to work with gcc 3.2.

Christoph Hellwig (hch@infradead.org)
Wed, 28 Aug 2002 22:32:16 +0100


On Wed, Aug 28, 2002 at 03:18:09PM -0600, Steven Cole wrote:
> --- linux-2.4.20-pre4-ac2/scripts/ver_linux.orig Wed Aug 28 14:37:39 2002
> +++ linux-2.4.20-pre4-ac2/scripts/ver_linux Wed Aug 28 14:37:51 2002
> @@ -12,7 +12,11 @@
> uname -a
> echo ' '
>
> -echo "Gnu C " `gcc --version`
> +gcc --version 2>&1| head -n 1 | grep -v gcc | awk \
> +'NR==1{print "Gnu C ", $1}'
> +
> +gcc --version 2>&1| grep gcc | awk \
> +'NR==1{print "Gnu C ", $3}'

Btw, both old and new versions are buggy here, as they should check $(CC).

My system compiler here is 2.95 but I compile with 3.2 from
/opt/gcc-3.2/bin/gcc

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/