Messages in this thread Patch in this message |  | | | Date | Mon, 22 Nov 1999 21:32:37 +0100 (CET) | | From | Daniel Kobras <> | | Subject | Re: : NFS Oops - the third today (2.2.13) |
| |
On 22 Nov 1999, Miquel van Smoorenburg wrote:
> That is because you are going about it the wrong way. You cannot > simply set CC=gcc272 to build the kernelwith gcc272, alas. > > You need to edit the main makefile, and in the line where it says: > > CC =$(CROSS_COMPILE)gcc -D__KERNEL__ -I$(HPATH) > > ... you need to change gcc to gcc272. > > If you simply set CC=gcc272 you're losing the -D__KERNEL__ -I$(HPATH) > options, and the kernel won't build.
That's why I suggested the below change to the top-level Makefile some months ago. Not really pretty but effective when trying to build with different compilers. Daniel.
--- Makefile.orig Thu Mar 25 13:11:08 1999 +++ Makefile Thu Mar 25 13:13:13 1999 @@ -18,11 +18,13 @@ HOSTCC =gcc HOSTCFLAGS =-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
+TARGETCC =gcc + CROSS_COMPILE =
AS =$(CROSS_COMPILE)as LD =$(CROSS_COMPILE)ld -CC =$(CROSS_COMPILE)gcc -D__KERNEL__ -I$(HPATH) +CC =$(CROSS_COMPILE)$(TARGETCC) -D__KERNEL__ -I$(HPATH) CPP =$(CC) -E AR =$(CROSS_COMPILE)ar NM =$(CROSS_COMPILE)nm
- 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/
|  |