sys-libs/zlib: fix mingw-w64 build.
authorMarty Plummer <ntzrmtthihu777@gmail.com>
Thu, 18 May 2017 00:34:33 +0000 (19:34 -0500)
committerPatrice Clement <monsieurp@gentoo.org>
Tue, 23 May 2017 14:29:46 +0000 (16:29 +0200)
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

index f7df57e95c5d0d9d0cea012e3d07e6bc7b11e06e..b587d42dae18150558b9ae7641f6f0398cd11910 100644 (file)
@@ -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 "$@"; "$@"; }