RISC-V fixes

This commit is contained in:
Andrew Lukoshko 2025-08-22 19:35:49 +00:00
parent 874bdb00e5
commit 7554242d89

View File

@ -27,7 +27,7 @@ Name: %{?scl_prefix}binutils
# The variable %%{source} (see below) should be set to indicate which of these
# origins is being used.
Version: 2.44
Release: 7%{?dist}
Release: 7%{?dist}.alma.1
License: GPL-3.0-or-later AND (GPL-3.0-or-later WITH Bison-exception-2.2) AND (LGPL-2.0-or-later WITH GCC-exception-2.0) AND BSD-3-Clause AND GFDL-1.3-or-later AND GPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-2.0-or-later
URL: https://sourceware.org/binutils
@ -125,6 +125,9 @@ URL: https://sourceware.org/binutils
%bcond_without systemzlib
# Default: run the testsuites.
%bcond_without testsuite
%ifarch riscv64
%bcond_with testsuite
%endif
# Default: use the xxhash-devel library.
%bcond_without xxhash
# Default: do not create cross targeted versions of the binutils.
@ -360,6 +363,10 @@ Provides: bundled(libiberty)
# Perl, sed and touch are all used in the %%prep section of this spec file.
BuildRequires: autoconf, automake, perl, sed, coreutils, make
%ifarch riscv64
BuildRequires: bison
%endif
%if %{with clang}
BuildRequires: clang compiler-rt
%else
@ -1102,7 +1109,7 @@ run_tests()
# Disable LTO on Arm due to:
# https://bugzilla.redhat.com/show_bug.cgi?id=1918924
%ifarch %{arm}
%ifarch %{arm} riscv64
%define enable_lto 0
%endif
@ -1576,6 +1583,11 @@ exit 0
#----------------------------------------------------------------------------
%changelog
* Fri Aug 22 2025 Andrew Lukoshko <alukoshko@almalinux.org> - 2.44-7.alma.1
- Add bison to BuildRequires for RISC-V
- Disable LTO for RISC-V
- Disable testsuite for RISC-V
* Mon Aug 11 2025 Nick Clifton <nickc@redhat.com> - 2.44-7
- Remove uneeded glibc/powerpc patch. (RHEL-100160)