summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRandolph Chung <randolph@tausq.org>2004-10-27 04:16:37 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-10-27 04:16:37 -0700
commitbb7be7fef4eae8a9d3e19773269920b4011a9dda (patch)
tree34ce081049254855bd286cb2d6fa483c6baa2c4c /Makefile
parentd7e672b1b99af4256fefe48d91f58208ec5301d4 (diff)
[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 <tausq@debian.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
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