commit: 2eb8d6a0ca10b05265cdff8cb7c9080648b1b082 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> AuthorDate: Mon Dec 22 08:56:37 2025 +0000 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> CommitDate: Mon Dec 22 08:56:37 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=2eb8d6a0
scripts/bootstrap-prefix: don't hang on to host linker in stage2 After we installed a new linker, we should use it, as there may be interoperability bugs between GCC and the host provided linker. See for instance the symptoms as described in https://forums.gentoo.org/viewtopic-t-1089690-start-0.html that also occur while building GCC. Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> scripts/bootstrap-prefix.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh index e364b2170e..3c849933a6 100755 --- a/scripts/bootstrap-prefix.sh +++ b/scripts/bootstrap-prefix.sh @@ -2120,6 +2120,9 @@ bootstrap_stage2() { emerge_pkgs --nodeps "${pkg}" || return 1 done + # we got a linker now + unset BINUTILS_CONFIG_LD + # GCC doesn't respect CPPFLAGS because of its own meddling as well # as toolchain.eclass, so provide a wrapper here to force just # installed packages to be found
