commit:     4d6f1784d518ffbb8d753f25ef1592eb11a4db57
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed May  7 18:11:55 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May  7 18:12:58 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d6f1784

sys-libs/zlib: conditionally call lto-guarantee-fat

When we have USE=static-libs and that controls all static library use,
we can avoid adding -ffat-lto-objects for USE=-static-libs.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-libs/zlib/zlib-1.3.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-libs/zlib/zlib-1.3.1-r1.ebuild 
b/sys-libs/zlib/zlib-1.3.1-r1.ebuild
index 837b8564eec1..e7318f89fd25 100644
--- a/sys-libs/zlib/zlib-1.3.1-r1.ebuild
+++ b/sys-libs/zlib/zlib-1.3.1-r1.ebuild
@@ -69,7 +69,7 @@ src_prepare() {
 }
 
 src_configure() {
-       lto-guarantee-fat
+       use static-libs && lto-guarantee-fat
        multilib-minimal_src_configure
 }
 

Reply via email to