Skip to content

Commit

Permalink
MIPS: Set compiler options only after the compiler prefix has ben set.
Browse files Browse the repository at this point in the history
Otherwise indigestable options might be passed to the host compiler.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed May 14, 2009
1 parent 165533c commit 05e4140
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/mips/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

KBUILD_DEFCONFIG := ip22_defconfig

cflags-y := -ffunction-sections

#
# Select the object file format to substitute into the linker script.
#
Expand Down Expand Up @@ -50,6 +48,8 @@ ifneq ($(SUBARCH),$(ARCH))
endif
endif

cflags-y := -ffunction-sections

ifdef CONFIG_32BIT
ld-emul = $(32bit-emul)
vmlinux-32 = vmlinux
Expand Down

0 comments on commit 05e4140

Please sign in to comment.