From bb7be7fef4eae8a9d3e19773269920b4011a9dda Mon Sep 17 00:00:00 2001 From: Randolph Chung Date: Wed, 27 Oct 2004 04:16:37 -0700 Subject: [PATCH] Fix cc-option call for xcompiles If an arch Makefile overrides CROSS_COMPILE (e.g. parisc, mips, ...) then the cc-option call in the main Makefile uses the wrong compiler to check for options. Signed-off-by: Randolph Chung Signed-off-by: Linus Torvalds --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 15eb1cc457a3..26c4830a6380 100644 --- a/Makefile +++ b/Makefile @@ -520,11 +520,11 @@ ifdef CONFIG_DEBUG_INFO CFLAGS += -g endif +include $(srctree)/arch/$(ARCH)/Makefile + # warn about C99 declaration after statement CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) -include $(srctree)/arch/$(ARCH)/Makefile - # Default kernel image to build when no specific target is given. # KBUILD_IMAGE may be overruled on the commandline or # set in the environment -- cgit v1.2.3