When Reproducible: Always Steps to Reproduce: When "static-libs" USE flag is not enabled the zlib ebuild removes from library directory all files with .la and .a extensions. However, under mingw32 this also removes libz.dll.a, which contains glue code needed to link programs dynamically to zlib's DLL. Without this library programs cannot link to zlib's DLL. The line near the end of the zlib ebuild should be changed to "use static-libs || rm -f "${D}"/usr/$(get_libdir)/libz.{a,la}" which will only remove the true static zlib libraries and keep the glue library intact.
should be all set now in the tree; thanks for the report! Commit message: Remove libz/libminizip static files by name to avoid deleting files for targets that need more http://sources.gentoo.org/sys-libs/zlib/zlib-1.2.7.ebuild?r1=1.2&r2=1.3