Commit bb7be7fe authored by Randolph Chung's avatar Randolph Chung Committed by Linus Torvalds

[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: default avatarRandolph Chung <tausq@debian.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d7e672b1
...@@ -520,11 +520,11 @@ ifdef CONFIG_DEBUG_INFO ...@@ -520,11 +520,11 @@ ifdef CONFIG_DEBUG_INFO
CFLAGS += -g CFLAGS += -g
endif endif
include $(srctree)/arch/$(ARCH)/Makefile
# warn about C99 declaration after statement # warn about C99 declaration after statement
CFLAGS += $(call cc-option,-Wdeclaration-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. # Default kernel image to build when no specific target is given.
# KBUILD_IMAGE may be overruled on the commandline or # KBUILD_IMAGE may be overruled on the commandline or
# set in the environment # set in the environment
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment