Don't install binutils-gold on RHEL 8

This subpackage is only available since RHEL 9.
This commit is contained in:
Nikita Popov 2024-11-11 13:31:41 +00:00
parent 8ad28122a0
commit f14556f77b

View file

@ -293,8 +293,10 @@ BuildRequires: python%{python3_pkgversion}-myst-parser
BuildRequires: multilib-rpm-config BuildRequires: multilib-rpm-config
%if %{with gold} %if %{with gold}
BuildRequires: binutils-devel BuildRequires: binutils-devel
%if %{undefined rhel} || 0%{?rhel} > 8
BuildRequires: binutils-gold BuildRequires: binutils-gold
%endif %endif
%endif
%ifarch %{valgrind_arches} %ifarch %{valgrind_arches}
# Enable extra functionality when run the LLVM JIT under valgrind. # Enable extra functionality when run the LLVM JIT under valgrind.
BuildRequires: valgrind-devel BuildRequires: valgrind-devel