1 |
It's non-portable and we're looking to remove it from @system. |
2 |
|
3 |
Bug: https://bugs.gentoo.org/646588 |
4 |
Signed-off-by: Sam James <sam@g.o> |
5 |
--- |
6 |
eclass/usr-ldscript.eclass | 2 +- |
7 |
1 file changed, 1 insertion(+), 1 deletion(-) |
8 |
|
9 |
diff --git a/eclass/usr-ldscript.eclass b/eclass/usr-ldscript.eclass |
10 |
index a8229ed2ac2e..c821abd60846 100644 |
11 |
--- a/eclass/usr-ldscript.eclass |
12 |
+++ b/eclass/usr-ldscript.eclass |
13 |
@@ -70,7 +70,7 @@ gen_usr_ldscript() { |
14 |
# If they're using gold, manually invoke the old bfd. #487696 |
15 |
local d="${T}/bfd-linker" |
16 |
mkdir -p "${d}" |
17 |
- ln -sf $(which ${CHOST}-ld.bfd) "${d}"/ld |
18 |
+ ln -sf $(type -P ${CHOST}-ld.bfd) "${d}"/ld |
19 |
flags+=( -B"${d}" ) |
20 |
fi |
21 |
output_format=$($(tc-getCC) "${flags[@]}" 2>&1 | sed -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p') |
22 |
-- |
23 |
2.38.1 |