Skip to content

Commit

Permalink
Merge pull request #280 from radarhere/zlib
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Apr 8, 2022
2 parents fd9f833 + ce097fa commit 68b95e3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ TIFF_VERSION=4.3.0
LCMS2_VERSION=2.13.1
if [[ -n "$IS_MACOS" ]]; then
GIFLIB_VERSION=5.1.4
ZLIB_VERSION=1.2.11
else
GIFLIB_VERSION=5.2.1
fi
if [[ -n "$IS_MACOS" ]] || [[ -n "$IS_ALPINE" ]]; then
ZLIB_VERSION=1.2.12
else
ZLIB_VERSION=1.2.8
fi
LIBWEBP_VERSION=1.2.2
Expand Down Expand Up @@ -54,6 +57,11 @@ function pre_build {
if [ -z "$IS_ALPINE" ] && [ -z "$IS_MACOS" ]; then
yum remove -y zlib-devel
fi

if [[ -n "$IS_MACOS" ]]; then
# Workaround for zlib 1.2.12
export cc=$CC
fi
build_new_zlib

if [ -n "$IS_MACOS" ]; then
Expand Down

0 comments on commit 68b95e3

Please sign in to comment.