Re: arch/i386/Makefile

From: Michael Elizabeth Chastain (mec@shout.net)
Date: Sun Jan 09 2000 - 14:57:54 EST


Hello Pascal,

On 21 December 1999 you wrote:

> Now gcc is under /usr/local/gcc-2.95.2/bin/gcc, and a kernel build failed
> (2.2.14pre16) because of arch/i386/Makefile, rule found at line 68 :
>
> arch/i386/vmlinux.lds: arch/i386/vmlinux.lds.S FORCE
> gcc -E -C -P -I$(HPATH) -imacros $(HPATH)/asm-i386/page_offset.h
> Ui386 arch/i386/vmlinux.lds.S >arch/i386/vmlinux.lds
>
> At the beginning of the file, there is a variable CPP constructed with the
> current version of $(CC) and -E, so this should read
> $(CPP) -C -P ...

Good spotting!

Here is a patch. I've tested it on my system and it works for me.
I changed $(CC) in the top-level Makefile and verified that this line
calls the $(CC) that I specify.

Could you please try it and let me know if it works for you? If it does
work, I'll send it to Alan Cox for 2.2.15.

Michael Elizabeth Chastain
<mailto:mec@shout.net>
"love without fear"

===

diff -u -r -N linux-2.2.14/arch/i386/Makefile linux/arch/i386/Makefile
--- linux-2.2.14/arch/i386/Makefile Tue Oct 26 20:53:39 1999
+++ linux/arch/i386/Makefile Sun Jan 9 15:01:52 2000
@@ -65,7 +65,7 @@
 vmlinux: arch/i386/vmlinux.lds

 arch/i386/vmlinux.lds: arch/i386/vmlinux.lds.S FORCE
- gcc -E -C -P -I$(HPATH) -imacros $(HPATH)/asm-i386/page_offset.h -Ui386
arch/i386/vmlinux.lds.S >arch/i386/vmlinux.lds
+ $(CPP) -C -P -I$(HPATH) -imacros $(HPATH)/asm-i386/page_offset.h -Ui386
arch/i386/vmlinux.lds.S >arch/i386/vmlinux.lds

 FORCE: ;

-
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/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:14 EST