public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/binutils] rawhide: Fix sysroot of host == target cross linker.
@ 2026-10-20 14:00 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2026-10-20 14:00 UTC (permalink / raw)
  To: git-commits

            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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-20 14:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-20 14:00 [rpms/binutils] rawhide: Fix sysroot of host == target cross linker Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox