Skip to content

Commit f14556f

Browse files
committed
Don't install binutils-gold on RHEL 8
This subpackage is only available since RHEL 9.
1 parent 8ad2812 commit f14556f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm.spec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,10 @@ BuildRequires: python%{python3_pkgversion}-myst-parser
293293
BuildRequires: multilib-rpm-config
294294
%if %{with gold}
295295
BuildRequires: binutils-devel
296+
%if %{undefined rhel} || 0%{?rhel} > 8
296297
BuildRequires: binutils-gold
297298
%endif
299+
%endif
298300
%ifarch %{valgrind_arches}
299301
# Enable extra functionality when run the LLVM JIT under valgrind.
300302
BuildRequires: valgrind-devel

0 commit comments

Comments
 (0)