diff options
author | Sam James <sam@gentoo.org> | 2024-08-16 17:18:39 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-08-16 18:21:20 +0100 |
commit | 3c2c0e0c0e7630ff0df17728f40116a95c1f52d4 (patch) | |
tree | 58bd3979d7334407dcdd435700a845e5cd241936 /eclass | |
parent | toolchain-funcs.eclass: mark tc-ld-disable-gold as deprecated (diff) | |
download | gentoo-3c2c0e0c0e7630ff0df17728f40116a95c1f52d4.tar.gz gentoo-3c2c0e0c0e7630ff0df17728f40116a95c1f52d4.tar.bz2 gentoo-3c2c0e0c0e7630ff0df17728f40116a95c1f52d4.zip |
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@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain-funcs.eclass | 8 |
1 files 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 |