commit:     3c2c0e0c0e7630ff0df17728f40116a95c1f52d4
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 16 16:18:39 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Aug 16 17:21:20 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c2c0e0c

toolchain-funcs.eclass: use generic filename for linker test

At https://github.com/gentoo/gentoo/pull/28355#discussion_r1089883885, juippis
points out that for mold, the test might be confused. Let's consistently
use 'linker' instead.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/toolchain-funcs.eclass | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
index 2d65c3fdc146..563eb5e191cf 100644
--- a/eclass/toolchain-funcs.eclass
+++ b/eclass/toolchain-funcs.eclass
@@ -466,7 +466,7 @@ tc-ld-is-bfd() {
        # Then see if they're selecting bfd via compiler flags.
        # Note: We're assuming they're using LDFLAGS to hold the
        # options and not CFLAGS/CXXFLAGS.
-       local base="${T}/test-tc-bfd"
+       local base="${T}/test-tc-linker"
        cat <<-EOF > "${base}.c"
        int main(void) { return 0; }
        EOF
@@ -501,7 +501,7 @@ tc-ld-is-gold() {
        # Then see if they're selecting gold via compiler flags.
        # Note: We're assuming they're using LDFLAGS to hold the
        # options and not CFLAGS/CXXFLAGS.
-       local base="${T}/test-tc-gold"
+       local base="${T}/test-tc-linker"
        cat <<-EOF > "${base}.c"
        int main(void) { return 0; }
        EOF
@@ -534,7 +534,7 @@ tc-ld-is-lld() {
        # Then see if they're selecting lld via compiler flags.
        # Note: We're assuming they're using LDFLAGS to hold the
        # options and not CFLAGS/CXXFLAGS.
-       local base="${T}/test-tc-lld"
+       local base="${T}/test-tc-linker"
        cat <<-EOF > "${base}.c"
        int main(void) { return 0; }
        EOF
@@ -568,7 +568,7 @@ tc-ld-is-mold() {
        # Then see if they're selecting mold via compiler flags.
        # Note: We're assuming they're using LDFLAGS to hold the
        # options and not CFLAGS/CXXFLAGS.
-       local base="${T}/test-tc-mold"
+       local base="${T}/test-tc-linker"
        cat <<-EOF > "${base}.c"
        int main(void) { return 0; }
        EOF

Reply via email to