commit:     766b26c8b736f592efca38ea43c0197d6b57f277
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue May  6 15:01:02 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue May  6 17:40:27 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=766b26c8

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

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

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

 media-libs/shaderc/shaderc-2025.1.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/media-libs/shaderc/shaderc-2025.1.ebuild 
b/media-libs/shaderc/shaderc-2025.1.ebuild
index 173d685402a1..bbe7c780e6b0 100644
--- a/media-libs/shaderc/shaderc-2025.1.ebuild
+++ b/media-libs/shaderc/shaderc-2025.1.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 PYTHON_COMPAT=( python3_{10..13} )
-inherit cmake-multilib python-any-r1
+inherit cmake-multilib dot-a python-any-r1
 
 DESCRIPTION="Collection of tools, libraries and tests for shader compilation"
 HOMEPAGE="https://github.com/google/shaderc";
@@ -57,6 +57,7 @@ src_prepare() {
 }
 
 multilib_src_configure() {
+       lto-guarantee-fat
        local mycmakeargs=(
                -DSHADERC_SKIP_TESTS="true"
                -DSHADERC_ENABLE_WERROR_COMPILE="false"
@@ -76,4 +77,5 @@ multilib_src_install() {
                use doc && local HTML_DOCS=( "${BUILD_DIR}/glslc/README.html" )
        fi
        cmake_src_install
+       strip-lto-bytecode
 }

Reply via email to