mirror of
https://github.com/chocolate-doom/chocpkg.git
synced 2025-02-24 12:31:42 +00:00
This should fix MingW compiles. Disable '-lc' on the linker command line since this breaks compilation on Windows and shouldn't be necessary anyway.
18 lines
664 B
Bash
18 lines
664 B
Bash
description "Library for compressing/decompressing GZIP files"
|
|
check_pkgconfig zlib
|
|
fetch_download http://zlib.net/zlib-1.2.10.tar.gz \
|
|
8d7e9f698ce48787b6e1c67e6bff79e487303e66077e25cb9784ac8835978017
|
|
build_autotools
|
|
|
|
# zlib's configure script is hand-rolled and doesn't support the normal
|
|
# --host option because, well, who knows.
|
|
do_build() {
|
|
if [ ! -z "$BUILD_HOST" ]; then
|
|
export CC="$BUILD_HOST-gcc"
|
|
fi
|
|
# Don't include -lc when building libraries. It's unclear why zlib does
|
|
# this by default, but it certainly doesn't work for Mingw compiles.
|
|
LDSHAREDLIBC="" ./configure --prefix="$PACKAGE_INSTALL_DIR"
|
|
make
|
|
}
|
|
|