aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2009-04-28 19:38:35 +0200
committerRalf Baechle <ralf@linux-mips.org>2009-05-14 13:50:28 +0100
commit05e41404470662a17699af9e6d91fc80ed91e757 (patch)
tree9afba3d1e15a014b304b2d12842ad92e3d9be6f8 /arch
parent165533c3bd750042e7e140dff5bc2406a5104efe (diff)
downloadkernel_samsung_smdk4412-05e41404470662a17699af9e6d91fc80ed91e757.tar.gz
kernel_samsung_smdk4412-05e41404470662a17699af9e6d91fc80ed91e757.tar.bz2
kernel_samsung_smdk4412-05e41404470662a17699af9e6d91fc80ed91e757.zip
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 <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 8d544c7c9fe..3d5626ee0a5 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