commit:     a30dbd8bb57907ed47844c1f86e7283869d96a9c
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 10 23:47:45 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Mon Aug 11 05:35:36 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a30dbd8b

dev-tcltk/tclxml: use dot-a.eclass

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

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

 dev-tcltk/tclxml/tclxml-3.3.1-r3.ebuild | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dev-tcltk/tclxml/tclxml-3.3.1-r3.ebuild 
b/dev-tcltk/tclxml/tclxml-3.3.1-r3.ebuild
index 6a44edd7c002..eebae2d10c92 100644
--- a/dev-tcltk/tclxml/tclxml-3.3.1-r3.ebuild
+++ b/dev-tcltk/tclxml/tclxml-3.3.1-r3.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=8
 
+inherit dot-a
+
 MYPN=TclXML
 MYP=${MYPN}-${PV}
 
@@ -38,6 +40,7 @@ PATCHES=(
 )
 
 src_configure() {
+       lto-guarantee-fat
        local myconf=""
 
        use threads && myconf="${myconf} --enable-threads"
@@ -50,3 +53,8 @@ src_configure() {
                $(use_enable amd64 64bit) \
                $(use_enable debug symbols)
 }
+
+src_install() {
+       default
+       strip-lto-bytecode
+}

Reply via email to