repo/gentoo:master commit in: eclass/
"Sam James" <[email protected]>
| Newsgroups | gmane.linux.gentoo.cvs |
|---|---|
| Message-ID | <1787035859.c5c1ad5b76fa8b081365ba41ee1dbc52ff424146.sam@gentoo> |
commit: c5c1ad5b76fa8b081365ba41ee1dbc52ff424146
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 18 06:49:45 2026 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Aug 18 06:50:59 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5c1ad5b
toolchain.eclass: enable build-id only for Linux
For other targets, I think the value is dubious, and it's not always
supported (like msp430-elf in the linked bug). I *have* seen people
genuinely wanting to use this for some embedded targets but let's
have them either add it themselves or file bugs w/ us and we can add
in those oddballs, rather than having a too-broad pattern to begin
with.
Closes: https://bugs.gentoo.org/981027
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/toolchain.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 5c9a4a2648d3..78fb6d2b240b 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1386,7 +1386,7 @@ toolchain_src_configure() {
# Turn on the -Wl,--build-id flag by default for ELF targets. bug #953869
# This helps with locating debug files.
case ${CTARGET} in
- *-linux-*|*-elf|*-eabi)
+ *-linux-*)
tc_version_is_at_least 4.5 && confgcc+=(
--enable-linker-build-id
)