commit:     a65dfe1ffdf0ad332643a27f993356b33ea868de
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  5 05:13:49 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue Aug  5 19:53:31 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a65dfe1f

media-sound/flake: use dot-a.eclass

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

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

 media-sound/flake/flake-0.11-r1.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/media-sound/flake/flake-0.11-r1.ebuild 
b/media-sound/flake/flake-0.11-r1.ebuild
index 25a2b34a6e6f..f8e610806391 100644
--- a/media-sound/flake/flake-0.11-r1.ebuild
+++ b/media-sound/flake/flake-0.11-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit toolchain-funcs
+inherit dot-a toolchain-funcs
 
 DESCRIPTION="An alternative to the FLAC reference encoder"
 HOMEPAGE="https://flake-enc.sourceforge.net";
@@ -21,6 +21,8 @@ src_configure() {
        sed -i -e "s:cc=\"gcc\":cc=\"$(tc-getCC)\":" configure \
        || die failed to patch CC
 
+       lto-guarantee-fat
+
        ./configure \
                --ar="$(tc-getAR)" \
                --cc="$(tc-getCC)" \
@@ -35,5 +37,7 @@ src_install() {
        dobin flake/flake
        doheader libflake/flake.h
        dolib.a libflake/libflake.a
+       strip-lto-bytecode
+
        dodoc Changelog README
 }

Reply via email to