summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-12-06 05:44:03 +0000
committerSam James <sam@gentoo.org>2022-12-06 05:44:03 +0000
commit88389031f2b0377f449ed0c6cd65c85a989b8470 (patch)
treef7433bc9e914762b0ab829eee7ca4d88d1456dc6 /eclass
parenttoolchain-funcs.eclass: stop using which(1) (diff)
downloadgentoo-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.eclass2
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')