commit: 23d46a7ced49f1a652d3ec1113a9313dc78937e4 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Tue Nov 4 15:03:44 2025 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Tue Nov 4 17:00:58 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23d46a7c
sys-libs/zlib-ng: Add USE=static-libs Closes: https://bugs.gentoo.org/965560 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> Part-of: https://github.com/gentoo/gentoo/pull/44464 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sys-libs/zlib-ng/zlib-ng-2.2.5-r1.ebuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys-libs/zlib-ng/zlib-ng-2.2.5-r1.ebuild b/sys-libs/zlib-ng/zlib-ng-2.2.5-r1.ebuild index 95f22ee5f08d..27264b91947a 100644 --- a/sys-libs/zlib-ng/zlib-ng-2.2.5-r1.ebuild +++ b/sys-libs/zlib-ng/zlib-ng-2.2.5-r1.ebuild @@ -21,7 +21,7 @@ CPU_USE=( arm_{crc32,neon} ppc_{altivec,vsx2,vsx3} ) -IUSE="compat ${CPU_USE[@]/#/cpu_flags_} test" +IUSE="compat ${CPU_USE[@]/#/cpu_flags_} static-libs test" RESTRICT="!test? ( test )" @@ -55,6 +55,12 @@ multilib_src_configure() { -DZLIB_ENABLE_TESTS=$(usex test) -DWITH_GTEST=$(usex test) ) + if use static-libs; then + mycmakeargs+=( + # upstream build system builds both if BUILD_SHARED_LIBS is unset + -UBUILD_SHARED_LIBS + ) + fi # The intrinsics options are all defined conditionally, so we need # to enable them on/off per-arch here for now.
