commit:     9c0d4a5db36f7311c9652a9a34758759e51f19b1
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 21 11:21:05 2025 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Dec 21 11:21:05 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=9c0d4a5d

scripts/bootstrap-prefix: make ldwrapper function when in stage2

There is no binutils-config installed yet, so make the wrapper fallback
to the host linker we have.

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 scripts/bootstrap-prefix.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index a4930e6ead..82cdfbdbd2 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -1964,6 +1964,7 @@ bootstrap_stage2() {
        BOOTSTRAP_STAGE="stage2" configure_toolchain || return 1
        configure_cflags || return 1
        export CONFIG_SHELL="${ROOT}"/tmp/bin/bash
+       export BINUTILS_CONFIG_LD="$(type -P ld)"  # in case of bootstrapped GCC
        export CC CXX
 
        emerge_pkgs() {

Reply via email to