sh: support CPU_J2 when compiler lacks -mj2
authorRich Felker <dalias@libc.org>
Sun, 9 Oct 2016 06:35:08 +0000 (02:35 -0400)
committerRich Felker <dalias@libc.org>
Thu, 13 Oct 2016 20:15:41 +0000 (16:15 -0400)
Signed-off-by: Rich Felker <dalias@libc.org>
arch/sh/Makefile

index 0047666..336f33a 100644 (file)
@@ -31,7 +31,7 @@ isa-y                                 := $(isa-y)-up
 endif
 
 cflags-$(CONFIG_CPU_SH2)               := $(call cc-option,-m2,)
-cflags-$(CONFIG_CPU_J2)                        := $(call cc-option,-mj2,)
+cflags-$(CONFIG_CPU_J2)                        += $(call cc-option,-mj2,)
 cflags-$(CONFIG_CPU_SH2A)              += $(call cc-option,-m2a,) \
                                           $(call cc-option,-m2a-nofpu,) \
                                           $(call cc-option,-m4-nofpu,)