Subject: bug in 2.2 arch/arm/Makefile

From: David Sean Friedman <[email-masked]>
Date: Sat, 6 Nov 1999 15:37:10 -0500 (EST)

The file arch/arm/Makefile incorrectly sets HOSTCFLAGS to
$(CFLAGS:-fomit-frame-pointer=), instead of
$(HOSTCFLAGS:-fomit-frame-pointer=)

In my case it broke the kernel compile since the cross compiler was gcc
2.95, which supports -fno-strict-aliasing, while the host compiler was
gcc 2.7.2.3 which does not.

This seems to be present in all 2.2 kernels.

A patch follows.

David Friedman
---
diff -urN linux-orig/arch/arm/Makefile linux/arch/arm/Makefile
--- linux-orig/arch/arm/Makefile        Sat Nov  6 15:25:31 1999
+++ linux/arch/arm/Makefile     Sat Nov  6 15:15:03 1999
@@ -128,7 +128,7 @@
 CPP             = $(CC) -E
 ARCHCC         := $(word 1,$(CC))
 GCCLIB         := $(shell $(CC) $(CFLAGS) --print-libgcc-file-name)
-HOSTCFLAGS     := $(CFLAGS:-fomit-frame-pointer=)
+HOSTCFLAGS     := $(HOSTCFLAGS:-fomit-frame-pointer=)
 ifeq ($(CONFIG_FRAME_POINTER),y)
 CFLAGS         := $(CFLAGS:-fomit-frame-pointer=)
 endif

unsubscribe: body of `unsubscribe linux-arm-kernel' to [email-masked]