Re: 2.2.0 and egcs 1.1 was Re: Sorry, wrong gcc-version

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 27 Oct 1998 19:56:25 +0000 (GMT)


> Linus Torvalds wrote:
> > In short, if you want to play safe stay with 2.7.2.3 for kernel
> > compilation.

[which isnt an option for several non x86 platforms at all but for x86
makes sense right now sadly. Not that gcc 2.7.2.3 can be relied upon to
compile everything right]

> if [ `gcc -v 2>&1 | grep version | cut -c13-` != '2.7.2.3' ]; then
> ...
> fi

This is not a good idea. gcc may not be compiler. 2.0.36pre15 puts a
#if based test in include/asm-i386/types.h

> wanting to change) perhaps the makefiles should include support for
> compilers which are not called "gcc". Then users could install egcs (or
> whatever) as gcc, and gcc2.7.2.3 as gcc2723 or gccold.

You can call the he compiler what you like. I regularly build with m68k-elf-gcc
for example - see the defines in the top Makefile

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