commit: 913fd61f0ffccb4891538efc36d0c88d7b9d9911 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Tue Feb 3 22:14:19 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Feb 3 23:17:34 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=913fd61f
toolchain-funcs.eclass: adapt tc-is-lto to non-ELF Closes: https://bugs.gentoo.org/969442 Thanks-to: James McClain <james <AT> thegreatmcpain.xyz> Signed-off-by: Sam James <sam <AT> gentoo.org> eclass/toolchain-funcs.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 3f820c2d8559..24eba4a4f572 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -1,4 +1,4 @@ -# Copyright 2002-2025 Gentoo Authors +# Copyright 2002-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: toolchain-funcs.eclass @@ -1248,7 +1248,7 @@ tc-is-lto() { ;; gcc) $(tc-getCC) ${CFLAGS} -c -o "${f}" -x c - <<<"" || die - [[ $($(tc-getREADELF) -S "${f}") == *.gnu.lto* ]] && ret=0 + [[ $($(tc-getOBJDUMP) -s "${f}") == *.gnu.lto* ]] && ret=0 ;; esac rm -f "${f}" || die
