commit: 95e9c4edde53273ff836adc59d257359fdd4f8fd Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Fri May 2 00:04:34 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue May 6 08:45:06 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95e9c4ed
sys-libs/zlib: use dot-a.eclass for LTO This means that USE=static-libs doesn't produce a "broken" library when built w/ LTO. Signed-off-by: Sam James <sam <AT> gentoo.org> sys-libs/zlib/zlib-1.3.1-r1.ebuild | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sys-libs/zlib/zlib-1.3.1-r1.ebuild b/sys-libs/zlib/zlib-1.3.1-r1.ebuild index f81cf5fac8d6..837b8564eec1 100644 --- a/sys-libs/zlib/zlib-1.3.1-r1.ebuild +++ b/sys-libs/zlib/zlib-1.3.1-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -6,7 +6,7 @@ EAPI=8 # Worth keeping an eye on 'develop' branch upstream for possible backports. AUTOTOOLS_AUTO_DEPEND="no" VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/madler.asc -inherit autotools edo multilib-minimal flag-o-matic verify-sig +inherit autotools dot-a edo multilib-minimal flag-o-matic verify-sig DESCRIPTION="Standard (de)compression library" HOMEPAGE="https://zlib.net/" @@ -68,6 +68,11 @@ src_prepare() { esac } +src_configure() { + lto-guarantee-fat + multilib-minimal_src_configure +} + multilib_src_configure() { # We pass manually instead of relying on the configure script/makefile # because it would pass it even for older binutils. @@ -164,6 +169,8 @@ multilib_src_install() { } multilib_src_install_all() { + strip-lto-bytecode + dodoc FAQ README ChangeLog doc/*.txt if use minizip ; then
