commit:     f3bd66f5e7c9c24f427f94f013ae3afbf7b9b9c5
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue May  6 17:29:23 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue May  6 17:40:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3bd66f5

dev-lang/yasm: use dot-a.eclass

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

Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 dev-lang/yasm/yasm-1.3.0-r2.ebuild | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/dev-lang/yasm/yasm-1.3.0-r2.ebuild 
b/dev-lang/yasm/yasm-1.3.0-r2.ebuild
index 34648241675c..f489f09a68af 100644
--- a/dev-lang/yasm/yasm-1.3.0-r2.ebuild
+++ b/dev-lang/yasm/yasm-1.3.0-r2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit flag-o-matic toolchain-funcs
+inherit dot-a flag-o-matic toolchain-funcs
 
 if [[ ${PV} == 9999* ]] ; then
        EGIT_REPO_URI="https://github.com/yasm/yasm.git";
@@ -51,6 +51,8 @@ src_prepare() {
 }
 
 src_configure() {
+       lto-guarantee-fat
+
        # bug #943747
        append-flags -std=gnu17
 
@@ -70,3 +72,8 @@ src_test() {
        # https://bugs.gentoo.org/718870
        emake -j1 check
 }
+
+src_install() {
+       default
+       strip-lto-bytecode
+}

Reply via email to