From 96cc318f2f34f69919aae27f8c5dc7a6532b06ae Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Mon, 30 Oct 2023 08:09:10 +0100 Subject: [PATCH] cross-zlib: rebuild * unset CC to fix cross compiling * fix the URL * clean up options while at it --- mingw-w64-cross-zlib/PKGBUILD | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mingw-w64-cross-zlib/PKGBUILD b/mingw-w64-cross-zlib/PKGBUILD index 0698ce0990b..76c41203132 100644 --- a/mingw-w64-cross-zlib/PKGBUILD +++ b/mingw-w64-cross-zlib/PKGBUILD @@ -5,15 +5,15 @@ _mingw_suff=mingw-w64-cross pkgname=("${_mingw_suff}-${_realname}") pkgdesc="Compression library implementing the deflate compression method found in gzip and PKZIP" pkgver=1.2.11 -pkgrel=1 +pkgrel=2 arch=('i686' 'x86_64') url="https://mingw-w64.sourceforge.io/" license=('custom') groups=("${_mingw_suff}-toolchain" "${_mingw_suff}") depends=() makedepends=("${_mingw_suff}-gcc" 'autotools') -options=('staticlibs' '!strip' '!libtool' '!emptydirs' '!buildflags') -source=("https://zlib.net/current/${_realname}-${pkgver}.tar.gz" +options=('!buildflags') +source=("https://zlib.net/fossils/${_realname}-${pkgver}.tar.gz" 01-zlib-1.2.11-1-buildsys.mingw.patch 02-no-undefined.mingw.patch 03-dont-put-sodir-into-L.mingw.patch) @@ -41,6 +41,7 @@ build() { msg "Configuring ${_realname} for ${_target}" cp -rf ${srcdir}/${_realname}-${pkgver} ${srcdir}/${_realname}-${_target} cd ${srcdir}/${_realname}-${_target} + unset CC CXX CHOST=${_target} ./configure --prefix=/opt/${_target} --shared make done