commit:     a29fba475b76080db2df299ff8c94169e837f4da
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Thu Nov 13 09:20:47 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Nov 16 07:58:42 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a29fba47

media-libs/raptor: export PKG_CONFIG for xml2-config, use dot-a.eclass

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

Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/44615
Closes: https://github.com/gentoo/gentoo/pull/44615
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/raptor/raptor-2.0.16-r1.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/media-libs/raptor/raptor-2.0.16-r1.ebuild 
b/media-libs/raptor/raptor-2.0.16-r1.ebuild
index 5e95311ccfaf..cf402e35cdb4 100644
--- a/media-libs/raptor/raptor-2.0.16-r1.ebuild
+++ b/media-libs/raptor/raptor-2.0.16-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit autotools multilib-minimal
+inherit autotools dot-a multilib-minimal toolchain-funcs
 
 MY_PN=${PN}2
 MY_P=${MY_PN}-${PV}
@@ -55,6 +55,9 @@ src_prepare() {
 multilib_src_configure() {
        # FIXME: It should be possible to use net-nntp/inn for libinn.h and 
-linn!
 
+       # export PKG_CONFIG for xml2-config
+       tc-export PKG_CONFIG
+       lto-guarantee-fat
        local myeconfargs=(
                --with-html-dir="${EPREFIX}"/usr/share/gtk-doc/html
                --with-www=curl
@@ -76,4 +79,5 @@ multilib_src_install() {
        default
 
        find "${ED}" -name '*.la' -delete || die
+       strip-lto-bytecode
 }

Reply via email to