Fix MacOS libpng compilation against the 10.12 SDK

This was SVN commit r24260.
This commit is contained in:
wraitii 2020-11-26 09:15:36 +00:00
parent a33b3883e1
commit 22d1742311

View File

@ -471,8 +471,9 @@ then
tar -xf $LIB_ARCHIVE
pushd $LIB_DIRECTORY
(./configure CFLAGS="$CFLAGS" \
LDFLAGS="$LDFLAGS" \
# libpng has no flags for zlib but the 10.12 version is too old, so link our own.
(./configure CFLAGS="$CFLAGS" CPPFLAGS=" -I $ZLIB_DIR/include "\
LDFLAGS="$LDFLAGS -L$ZLIB_DIR/lib" \
--prefix=$INSTALL_DIR \
--enable-shared=no \
&& make ${JOBS} && make install) || die "libpng build failed"