commit:     7a33d7b64e98a6eac75c08a63e2213a4a254921f
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  5 19:21:55 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue Aug  5 19:53:34 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a33d7b6

dev-libs/pcc-libs: use dot-a.eclass

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

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

 dev-libs/pcc-libs/pcc-libs-1.1.0.ebuild | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/dev-libs/pcc-libs/pcc-libs-1.1.0.ebuild 
b/dev-libs/pcc-libs/pcc-libs-1.1.0.ebuild
index 1935211c9469..52d1279c6cde 100644
--- a/dev-libs/pcc-libs/pcc-libs-1.1.0.ebuild
+++ b/dev-libs/pcc-libs/pcc-libs-1.1.0.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
+inherit dot-a
+
 DESCRIPTION="pcc compiler support libs"
 HOMEPAGE="http://pcc.ludd.ltu.se";
 SRC_URI="ftp://pcc.ludd.ltu.se/pub/pcc-releases/${P}.tgz";
@@ -12,7 +14,17 @@ LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
+src_configure() {
+       lto-guarantee-fat
+       default
+}
+
 src_compile() {
        # not parallel-safe yet
        emake -j1
 }
+
+src_install() {
+       default
+       strip-lto-bytecode
+}

Reply via email to