commit: a09c4b76b75d4a3d34a60bc6030220563b838743
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 23 21:31:44 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jul 23 22:35:55 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a09c4b76
eclass/tests: dot-a: add missing `local`
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/tests/dot-a.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/eclass/tests/dot-a.sh b/eclass/tests/dot-a.sh
index 33c1573385ef..8a5e4739b1fa 100755
--- a/eclass/tests/dot-a.sh
+++ b/eclass/tests/dot-a.sh
@@ -511,12 +511,14 @@ test_strip_nolto() {
_repeat_tests_with_compilers() {
# Call test_lto_guarantee_fat and test_strip_lto_bytecode with
# various compilers and linkers.
+ local toolchain
for toolchain in gcc:ar clang:llvm-ar ; do
CC=${toolchain%:*}
AR=${toolchain#*:}
type -P ${CC} &>/dev/null || continue
type -P ${AR} &>/dev/null || continue
+ local linker
for linker in gold bfd lld mold gold ; do
# lld doesn't support GCC LTO:
https://github.com/llvm/llvm-project/issues/41791
[[ ${CC} == gcc && ${linker} == lld ]] && continue
@@ -535,6 +537,7 @@ _repeat_mixed_tests_with_linkers() {
#
# Needs both GCC and Clang to test mixing their outputs.
if type -P gcc &>/dev/null && type -P clang &>/dev/null ; then
+ local linker
for linker in bfd lld mold gold ; do
# lld doesn't support GCC LTO:
https://github.com/llvm/llvm-project/issues/41791
[[ ${CC} == gcc && ${linker} == lld ]] && continue