From: Ralf Baechle Date: Tue, 28 Apr 2009 17:38:35 +0000 (+0200) Subject: MIPS: Set compiler options only after the compiler prefix has ben set. X-Git-Tag: upstream/snapshot3+hdmi~18860^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=05e41404470662a17699af9e6d91fc80ed91e757;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git MIPS: Set compiler options only after the compiler prefix has ben set. Otherwise indigestable options might be passed to the host compiler. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 8d544c7..3d5626e 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile @@ -14,8 +14,6 @@ KBUILD_DEFCONFIG := ip22_defconfig -cflags-y := -ffunction-sections - # # Select the object file format to substitute into the linker script. # @@ -50,6 +48,8 @@ ifneq ($(SUBARCH),$(ARCH)) endif endif +cflags-y := -ffunction-sections + ifdef CONFIG_32BIT ld-emul = $(32bit-emul) vmlinux-32 = vmlinux