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>
Sun, 28 Aug 2022 21:22:32 +0000 (23:22 +0200)
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
toolchain/gcc/common.mk

index 926418f4a774376ed8c533f3d05a817d45cca3df..ee7352a5b4b47cb794627469b6e9afbee5685efa 100644 (file)
@@ -84,6 +84,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)"), \
@@ -147,6 +151,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