commit:     0c9b2c7fc1c958951c88140b474a19c610705393
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue May  6 17:00:40 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=0c9b2c7f

media-libs/libsdl: use dot-a.eclass

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

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

 media-libs/libsdl/libsdl-1.2.68.ebuild | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/media-libs/libsdl/libsdl-1.2.68.ebuild 
b/media-libs/libsdl/libsdl-1.2.68.ebuild
index 5fe03297f8d5..301e3762ff0c 100644
--- a/media-libs/libsdl/libsdl-1.2.68.ebuild
+++ b/media-libs/libsdl/libsdl-1.2.68.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 cmake-multilib
+inherit cmake-multilib dot-a
 
 DESCRIPTION="Simple Direct Media Layer 1.2 compatibility wrapper around SDL2"
 HOMEPAGE="https://github.com/libsdl-org/sdl12-compat";
@@ -37,9 +37,15 @@ DEPEND="
 "
 
 src_configure() {
+       lto-guarantee-fat
        local mycmakeargs=(
                -DSDL12TESTS=$(usex test)
        )
 
        cmake-multilib_src_configure
 }
+
+src_install() {
+       cmake-multilib_src_install
+       strip-lto-bytecode
+}

Reply via email to