>From a67dcfb05b84c70c3a98b6731f833d67d71c8272 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sun, 14 Jun 2026 12:03:09 +0000 Subject: [PATCH] avoid --with-float on loongarch and riscv gcc's configure script rejects --with-float for riscv and loongarch targets, but litecross automatically adds it based on the triplet. loongarch*-*sf is the conventional triplet used by gcc for the soft-float abi, riscv has no such convention, but *sf suffix makes sense there too. --- litecross/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litecross/Makefile b/litecross/Makefile index 79bdbea..4c69795 100644 --- a/litecross/Makefile +++ b/litecross/Makefile @@ -39,6 +39,7 @@ ifneq ($(findstring s390x,$(TARGET)),) GCC_CONFIG_FOR_TARGET += --with-long-double-128 endif +ifeq ($(findstring loongarch,$(TARGET))$(findstring riscv,$(TARGET)),) ifneq ($(filter %sf,$(TARGET)),) GCC_CONFIG_FOR_TARGET += --with-float=soft endif @@ -46,6 +47,7 @@ endif ifneq ($(filter %hf,$(TARGET)),) GCC_CONFIG_FOR_TARGET += --with-float=hard endif +endif ifneq ($(LIBTOOL),) LIBTOOL_ARG = LIBTOOL=$(LIBTOOL) -- 2.52.0