Check arch/i386/Makefile. IIRC it has a line to determine: if CC (that's kgcc in this case) supports -mathlon then use it, otherwise use -march=i686. However kgcc(aka egcs) doesn't support -mathlon. Abel Cheung On Fri, 30 Mar 2001, Tim wrote: > I just happened to be watching the lines scroll by after I typed make bzImage > and noticed this. In my config I set up the kernel to be for Athlon > architecture. Chances are I wouldn't have noticed the difference except I > just got done compiling the new 2.4.3 kernel and noticed this... > > Look at this snippet of code: ( This was with the following package: > kernel-source-2.4.2-22mdk.i586.rpm ) > ------------------------------ > /usr/bin/kgcc -D__KERNEL__ -I/usr/src/linux-2.4.2/include -Wall > -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe > -march=i686 -malign-functions=4 -c -o ip_output.o ip_output.c > ------------------------------ > -march=i686 ??? > > for athlon that should say -march=athlon correct??? This was set up using > make xconfig, I haven't gotten around to testing it with just make config. > > > > Here's a snippet of code from my 2.4.3 compile from kernel.org > ------------------------------ > gcc -D__KERNEL__ -I/root/linux/include -Wall -Wstrict-prototypes -O2 > -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 > -march=athlon -E -D__GENKSYMS__ nubus_syms.c > ------------------------------- > > They do use the -march=athlon tag.... Is this just not supported in mandrake, > new to 2.4.3, or just a goof somewhere in the code? > >
