Disable gold on RHEL 11

gold is deprecated upstream, and nothing should need it in RHEL 11.

https://github.com/fedora-eln/eln/issues/553
This commit is contained in:
Yaakov Selkowitz 2026-08-06 11:56:18 -04:00
commit ddb3cb864e

View file

@ -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.