Fix MacOS libpng compilation against the 10.12 SDK
This was SVN commit r24260.
This commit is contained in:
parent
a33b3883e1
commit
22d1742311
@ -471,8 +471,9 @@ then
|
|||||||
tar -xf $LIB_ARCHIVE
|
tar -xf $LIB_ARCHIVE
|
||||||
pushd $LIB_DIRECTORY
|
pushd $LIB_DIRECTORY
|
||||||
|
|
||||||
(./configure CFLAGS="$CFLAGS" \
|
# libpng has no flags for zlib but the 10.12 version is too old, so link our own.
|
||||||
LDFLAGS="$LDFLAGS" \
|
(./configure CFLAGS="$CFLAGS" CPPFLAGS=" -I $ZLIB_DIR/include "\
|
||||||
|
LDFLAGS="$LDFLAGS -L$ZLIB_DIR/lib" \
|
||||||
--prefix=$INSTALL_DIR \
|
--prefix=$INSTALL_DIR \
|
||||||
--enable-shared=no \
|
--enable-shared=no \
|
||||||
&& make ${JOBS} && make install) || die "libpng build failed"
|
&& make ${JOBS} && make install) || die "libpng build failed"
|
||||||
|
Loading…
Reference in New Issue
Block a user