diff options
author | Sam James <sam@gentoo.org> | 2022-12-06 05:44:03 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-12-06 05:44:03 +0000 |
commit | 88389031f2b0377f449ed0c6cd65c85a989b8470 (patch) | |
tree | f7433bc9e914762b0ab829eee7ca4d88d1456dc6 /eclass | |
parent | toolchain-funcs.eclass: stop using which(1) (diff) | |
download | gentoo-88389031f2b0377f449ed0c6cd65c85a989b8470.tar.gz gentoo-88389031f2b0377f449ed0c6cd65c85a989b8470.tar.bz2 gentoo-88389031f2b0377f449ed0c6cd65c85a989b8470.zip |
usr-ldscript.eclass: stop using which(1)
It's non-portable and we're looking to remove it from @system.
Bug: https://bugs.gentoo.org/646588
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/usr-ldscript.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/usr-ldscript.eclass b/eclass/usr-ldscript.eclass index a8229ed2ac2e..c821abd60846 100644 --- a/eclass/usr-ldscript.eclass +++ b/eclass/usr-ldscript.eclass @@ -70,7 +70,7 @@ gen_usr_ldscript() { # If they're using gold, manually invoke the old bfd. #487696 local d="${T}/bfd-linker" mkdir -p "${d}" - ln -sf $(which ${CHOST}-ld.bfd) "${d}"/ld + ln -sf $(type -P ${CHOST}-ld.bfd) "${d}"/ld flags+=( -B"${d}" ) fi output_format=$($(tc-getCC) "${flags[@]}" 2>&1 | sed -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p') |