commit:     347641e47ecf176ba940d2e1d1d076f1879b66cd
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue May  6 15:23:23 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=347641e4

dev-util/cpputest: use dot-a.eclass

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

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

 dev-util/cpputest/cpputest-4.0-r1.ebuild | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/dev-util/cpputest/cpputest-4.0-r1.ebuild 
b/dev-util/cpputest/cpputest-4.0-r1.ebuild
index 4d8d165e77c2..d6f93c1a648b 100644
--- a/dev-util/cpputest/cpputest-4.0-r1.ebuild
+++ b/dev-util/cpputest/cpputest-4.0-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit autotools
+inherit autotools dot-a
 
 DESCRIPTION="Unit testing and mocking framework for C/C++"
 HOMEPAGE="https://cpputest.github.io/ https://github.com/cpputest/cpputest";
@@ -28,3 +28,13 @@ src_prepare() {
        default
        eautoreconf
 }
+
+src_configure() {
+       lto-guarantee-fat
+       default
+}
+
+src_install() {
+       default
+       strip-lto-bytecode
+}

Reply via email to