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 00476662ac2c07ba1e0a3bb427e114ae2f5a7650..336f33a419d99561d57b329a3ee6a513164ca43f 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,)