From 074bec5bb37a7f227167f6a99a02a88d49cc6e14 Mon Sep 17 00:00:00 2001 From: WeissonInc Date: Sun, 10 Jul 2022 16:13:28 +0800 Subject: [PATCH] RISC-V build does not have ld.glod information, skip it Signed-off-by: Weisson --- binutils.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/binutils.spec b/binutils.spec index 996fb7d..c68cb50 100644 --- a/binutils.spec +++ b/binutils.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 # Determine if this is a native build or a cross build. # # For a cross build add --define "binutils_target " to the command @@ -103,7 +103,12 @@ URL: https://sourceware.org/binutils #----End of Configure Options------------------------------------------------ # Note - in the future the gold linker may become deprecated. +%ifnarch riscv64 %bcond_without gold +%else +# RISC-V does not have ld.gold thus disable by default. +%bcond_with gold +%endif # Default: Not bootstrapping. %bcond_with bootstrap @@ -853,5 +858,8 @@ exit 0 %endif %changelog +* Mon Jul 11 2022 Weisson - 2.38-2 +- Add support for riscv64 architecture. + * Thu Feb 24 2022 Chunmei Xu - 2.38-1 - Rebase on GNU Binutils 2.38. -- Gitee