commit:     1abaeb622d9f08266e66ce6e93ec70087453af39
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  5 19:44:41 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue Aug  5 19:53:35 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1abaeb62

dev-util/treecc: use dot-a.eclass

... to avoid installing broken static libraries w/ LTO.

Closes: https://bugs.gentoo.org/958416
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 dev-util/treecc/treecc-0.3.10-r3.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/dev-util/treecc/treecc-0.3.10-r3.ebuild 
b/dev-util/treecc/treecc-0.3.10-r3.ebuild
index a034e4dcf8a5..1dedfca6d10f 100644
--- a/dev-util/treecc/treecc-0.3.10-r3.ebuild
+++ b/dev-util/treecc/treecc-0.3.10-r3.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit toolchain-funcs
+inherit dot-a toolchain-funcs
 
 DESCRIPTION="Compiler-compiler tool for aspect-oriented programming"
 HOMEPAGE="https://www.gnu.org/software/dotgnu/";
@@ -20,6 +20,11 @@ PATCHES=(
        "${FILESDIR}/${P}-proto.patch"
 )
 
+src_configure() {
+       lto-guarantee-fat
+       default
+}
+
 src_compile() {
        emake AR="$(tc-getAR)"
 
@@ -34,6 +39,7 @@ src_compile() {
 
 src_install() {
        default
+       strip-lto-bytecode
 
        if use examples; then
                docinto examples

Reply via email to