public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Nick Clifton <nickc@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/binutils] rawhide: Fix sysroot of host == target cross linker.
Date: Tue, 20 Oct 2026 14:00:41 GMT [thread overview]
Message-ID: <179250484187.1.7371138412365216088.rpms-binutils-e0164e4e0f46@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/binutils
Branch : rawhide
Commit : e0164e4e0f46566c5548fe5792d3c380d72b016f
Author : Nick Clifton <nickc@redhat.com>
Date : 2026-10-20T15:00:00+01:00
Stats : +14/-5 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/binutils/c/e0164e4e0f46566c5548fe5792d3c380d72b016f?branch=rawhide
Log:
Fix sysroot of host == target cross linker.
Resolves: #2554470
---
diff --git a/binutils.spec b/binutils.spec
index 78b6c93..a9fc085 100644
--- a/binutils.spec
+++ b/binutils.spec
@@ -7,7 +7,7 @@ Name: binutils%{?_with_debug:-debug}
# The variable %%{source} (see below) should be set to indicate which of these
# origins is being used.
Version: 2.47.50
-Release: 19%{?dist}
+Release: 20%{?dist}
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
@@ -476,7 +476,7 @@ BuildRequires: elfutils-debuginfod-client-devel
# These libraries are needed by elfutils-debuginfod-client-devel. It is not
# clear why they are not being brought in automatically, but their absence is
# causing failures in the Bodhi testsuite.
-BuildRequires: libcurl-minimal elfutils-libelf-devel openssl-libs json-c libzstd-devel
+BuildRequires: libcurl-minimal elfutils-libelf openssl-libs json-c libzstd-devel
%endif
%if %{with xxhash}
@@ -1026,11 +1026,17 @@ run_target_configuration()
# No extra targets are supported.
TARGS=""
+ # For host == target cross builds use the host sysroot.
+ if test x$target == x%{_target_platform}; then
+ SARGS="--with-sysroot=/" ;
+ else
+ SARGS="--with-sysroot=yes" ;
+ fi
+
# Always disable the GOLD linker for cross builds because although it
# does support sysroots specified on the command line, it does not
# support them in linker scripts via the =/$SYSROOT prefix.
- SARGS="--with-sysroot=yes \
- --program-prefix=$target- \
+ SARGS="--program-prefix=$target- \
--prefix=%{_prefix}/$target \
--libdir=%{_libdir} \
--exec-prefix=%{_usr} \
@@ -1796,7 +1802,10 @@ exit 0
#----------------------------------------------------------------------------
%changelog
-* Thu Oct 15 2026 Nick Clifton <nickc@redhat.com> - 2.47.50-10
+* Tue Oct 20 2026 Nick Clifton <nickc@redhat.com> - 2.47.50-20
+- Fix sysroot of host == target cross linker. (#2554470)
+
+* Thu Oct 15 2026 Nick Clifton <nickc@redhat.com> - 2.47.50-19
- Add more BuildRequires when building with debuginfod.
* Wed Oct 14 2026 Nick Clifton <nickc@redhat.com> - 2.47.50-18
reply other threads:[~2026-10-20 14:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179250484187.1.7371138412365216088.rpms-binutils-e0164e4e0f46@fedoraproject.org \
--to=nickc@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox