diff --git a/binutils.spec b/binutils.spec index 4eafe2d..4dd2fef 100644 --- a/binutils.spec +++ b/binutils.spec @@ -157,12 +157,16 @@ URL: https://sourceware.org/binutils %bcond_without zstd # Note - in the future the gold linker may become deprecated. +%if 0%{?rhel} >= 11 +%bcond_with gold +%else %ifnarch riscv64 %bcond_without gold %else # RISC-V does not have ld.gold thus disable by default. %bcond_with gold %endif +%endif # Allow the user to override the compiler used to build the binutils. # The default build compiler is gcc if %%toolchain is not clang.