gcc: add multilib m4/m4-nofpu config for sh4
authorZoltan HERPAI <wigyori@uid0.hu>
Sun, 30 Jan 2022 12:47:12 +0000 (13:47 +0100)
committerZoltan HERPAI <wigyori@uid0.hu>
Mon, 29 Apr 2024 07:56:18 +0000 (09:56 +0200)
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
toolchain/gcc/common.mk

index cdbf9fafa9474b94f60d7defeb8f8ec1661f3180..0eea12f10963c2d9859363b0d07387493e09bbb4 100644 (file)
@@ -85,6 +85,10 @@ else
   GRAPHITE_CONFIGURE:= --without-isl --without-cloog
 endif
 
+ifneq ($(CONFIG_sh4),y)
+       DISABLE_MULTILIB:=--disable-multilib
+endif
+
 GCC_CONFIGURE:= \
        SHELL="$(BASH)" \
        $(HOST_SOURCE_DIR)/configure \
@@ -146,6 +150,11 @@ ifdef CONFIG_sparc
                --with-long-double-128
 endif
 
+ifdef CONFIG_sh4
+  GCC_CONFIGURE+= \
+       --with-multilib-list=m4,m4-nofpu
+endif
+
 ifneq ($(GCC_ARCH),)
   GCC_CONFIGURE+= --with-arch=$(GCC_ARCH)
 endif