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>
This commit is contained in:
parent
165533c3bd
commit
05e4140447
|
@ -14,8 +14,6 @@
|
||||||
|
|
||||||
KBUILD_DEFCONFIG := ip22_defconfig
|
KBUILD_DEFCONFIG := ip22_defconfig
|
||||||
|
|
||||||
cflags-y := -ffunction-sections
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Select the object file format to substitute into the linker script.
|
# Select the object file format to substitute into the linker script.
|
||||||
#
|
#
|
||||||
|
@ -50,6 +48,8 @@ ifneq ($(SUBARCH),$(ARCH))
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
cflags-y := -ffunction-sections
|
||||||
|
|
||||||
ifdef CONFIG_32BIT
|
ifdef CONFIG_32BIT
|
||||||
ld-emul = $(32bit-emul)
|
ld-emul = $(32bit-emul)
|
||||||
vmlinux-32 = vmlinux
|
vmlinux-32 = vmlinux
|
||||||
|
|
Loading…
Reference in New Issue