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>
Sat, 14 May 2022 10:07:23 +0000 (12:07 +0200)
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
toolchain/gcc/common.mk

index bef4fa37f8f90466c304c4a3c836d4912ea5025f..f857ef87695455b70a0cad8bfbca40a7e38b21b0 100644 (file)
@@ -80,6 +80,10 @@ else
   GRAPHITE_CONFIGURE:= --without-isl --without-cloog
 endif
 
+ifneq ($(CONFIG_sh4),y)
+       DISABLE_MULTILIB:=--disable-multilib
+endif
+
 GCC_CONFIGURE:= \
        SHELL="$(BASH)" \
        $(if $(shell gcc --version 2>&1 | grep -E "Apple.(LLVM|clang)"), \
@@ -143,6 +147,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