diff --git a/binutils.spec b/binutils.spec index 4f51b3a8e7636caefeba17d095a06539afd931e9..50eab1b5693893acd48ddedea2dd6118a70bd210 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 @@ -111,7 +111,7 @@ URL: https://sourceware.org/binutils #----End of Configure Options------------------------------------------------ # Note - in the future the gold linker may become deprecated. -%ifnarch riscv64 +%ifnarch riscv64 loongarch64 %bcond_without gold %else # RISC-V does not have ld.gold thus disable by default. @@ -125,7 +125,11 @@ URL: https://sourceware.org/binutils # Default: Always build documentation. %bcond_without docs # Default: Always run the testsuite. +%ifarch loongarch64 +%bcond_with testsuite +%else %bcond_without testsuite +%endif # Default: support debuginfod. %bcond_without debuginfod # Default: build binutils-gprofng package. @@ -940,6 +944,10 @@ exit 0 %doc README ChangeLog MAINTAINERS README-maintainer-mode %changelog +* Thu Oct 19 2023 Peng Fan - 2.40-2 +- Disable gold build in LoongArch. +- Disable testsuite in LoongArch(ld-bootstrap check fails). + * Mon Aug 21 2023 happy_orange - 2.40-1 - update to 2.40