forked from 0ad/0ad
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
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user