From d1f5cd7e02734dd4e0a976be22556a50e0cb4718 Mon Sep 17 00:00:00 2001 From: Zoltan HERPAI Date: Sun, 30 Jan 2022 13:47:12 +0100 Subject: [PATCH] gcc: add multilib m4/m4-nofpu config for sh4 Signed-off-by: Zoltan HERPAI --- toolchain/gcc/common.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk index cdbf9fafa9..0eea12f109 100644 --- a/toolchain/gcc/common.mk +++ b/toolchain/gcc/common.mk @@ -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 -- 2.30.2