commit:     30409522f810c01005ea348d732cc090d11da42a
Author:     Marty Plummer <ntzrmtthihu777 <AT> gmail <DOT> com>
AuthorDate: Thu May 18 00:34:33 2017 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Tue May 23 14:29:46 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30409522

sys-libs/zlib: fix mingw-w64 build.

Gentoo-Bug: https://bugs.gentoo.org/605484

Package-Manager: Portage-2.3.5, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4662

 sys-libs/zlib/zlib-1.2.11.ebuild | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sys-libs/zlib/zlib-1.2.11.ebuild b/sys-libs/zlib/zlib-1.2.11.ebuild
index f7df57e95c5..b587d42dae1 100644
--- a/sys-libs/zlib/zlib-1.2.11.ebuild
+++ b/sys-libs/zlib/zlib-1.2.11.ebuild
@@ -29,6 +29,13 @@ src_prepare() {
                cd contrib/minizip || die
                eautoreconf
        fi
+
+       case ${CHOST} in
+       *-mingw*|mingw*)
+               # uses preconfigured Makefile rather than configure script
+               multilib_copy_sources
+               ;;
+       esac
 }
 
 echoit() { echo "$@"; "$@"; }

Reply via email to