commit:     af86694a988bf16a794191383b4b624d99d4a39f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 30 18:36:07 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jul 30 18:38:17 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af86694a

toolchain-funcs.eclass: shift comment

It makes a bit more sense (although still a bit suspicious, wonder if should
strip . as well, see c26413ae8029f1557aae95b6f8744fc16671fa3b and bug #911503
where we had 'ld.lld.bd') now with the comment in the right place.

It was added originally for bug #545218 
(b959fb6c158d4727e85472b3a50af5af3f719972).

Bug: https://bugs.gentoo.org/545218
Bug: https://bugs.gentoo.org/911503
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/toolchain-funcs.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
index 26b7a0772ca6..0eca4dde9f36 100644
--- a/eclass/toolchain-funcs.eclass
+++ b/eclass/toolchain-funcs.eclass
@@ -534,9 +534,9 @@ tc-ld-force-bfd() {
        ewarn "Forcing usage of the BFD linker"
 
        # Set up LD to point directly to bfd if it's available.
+       local ld=$(tc-getLD "$@")
        # We need to extract the first word in case there are flags appended
        # to its value (like multilib), bug #545218.
-       local ld=$(tc-getLD "$@")
        local bfd_ld="${ld%% *}.bfd"
        local path_ld=$(type -P "${bfd_ld}" 2>/dev/null)
        [[ -e ${path_ld} ]] && export LD=${bfd_ld}

Reply via email to