Compare commits

...

3 Commits
c10s ... a10s

Author SHA1 Message Date
114f9d81da Disable LTO globally 2025-08-23 12:19:55 +00:00
0fd99edcce Enable bootstrap 2025-08-22 19:39:59 +00:00
7554242d89 RISC-V fixes 2025-08-22 19:35:49 +00:00

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
@ -71,7 +71,7 @@ URL: https://sourceware.org/binutils
# Enable support for GCC LTO compilation.
# Disable if it is necessary to work around bugs in LTO.
%define enable_lto 1
%define enable_lto 0
# Enable support for generating new dtags in the linker
# Disable if it is necessary to use RPATH instead.
@ -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.
@ -151,7 +154,7 @@ URL: https://sourceware.org/binutils
# Bootstrapping: Set this to 1 to build the binutils with the system gcc.
# Then once GTS-gcc is built and in the buildroot, reset this variable
# to 0, bump the NVR and rebuild GTS-binutils.
%define bootstrapping 0
%define bootstrapping 1
#----End of Configure Options------------------------------------------------
@ -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)