diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-11-04 22:13:37 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-11-04 22:13:37 +0000 |
commit | 39ca6159b9ac903dc56818918d9f97bc831f0955 (patch) | |
tree | e9b34845be7f96bc244fd239f6dd8090096ce703 /eclass/toolchain-funcs.eclass | |
parent | bc968d15e7f24968eb69567c7f2fca470fdedacd (diff) |
gentoo auto-resync : 04:11:2023 - 22:13:37
Diffstat (limited to 'eclass/toolchain-funcs.eclass')
-rw-r--r-- | eclass/toolchain-funcs.eclass | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 4559894ca04a..8fef764ad597 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -534,10 +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 bfd_ld="${ld%% *}.bfd" + # Unset LD first so we get the default value from tc-getLD. + local ld=$(unset 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} |