-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update libpng from 1.6.43 to 1.6.44 (#1325)
* Update libpng from 1.6.43 to 1.6.44 * Add alternate url * Update build instructions --------- Co-authored-by: emscripten-forge-bot <[email protected]> Co-authored-by: Isabel Paredes <[email protected]>
- Loading branch information
1 parent
8083886
commit 081ac6d
Showing
2 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,24 @@ | ||
# FIXME: libz.so has the wrong magic bytes | ||
rm $PREFIX/lib/libz.so* | ||
|
||
# Get an updated config.sub and config.guess | ||
cp $BUILD_PREFIX/share/libtool/build-aux/config.* . | ||
|
||
export CFLAGS="$CFLAGS -I$PREFIX/include -L$PREFIX/lib" | ||
export CPPFLAGS="$CPPFLAGS -I$PREFIX/include" | ||
# atomics and bulk-memory are required for cairo | ||
export CFLAGS="-I$PREFIX/include -matomics -mbulk-memory" | ||
export CPPFLAGS="-I$PREFIX/include" | ||
export LDFLAGS="$LDFLAGS -L$PREFIX/lib" | ||
|
||
mkdir -p build | ||
cd build | ||
|
||
emconfigure ./configure --prefix=$PREFIX \ | ||
--with-zlib-prefix=$PREFIX | ||
emconfigure ../configure --prefix=$PREFIX \ | ||
--with-zlib-prefix=$PREFIX \ | ||
--disable-shared | ||
# NOTE: to enable shared, the -shared flag needs to be replaced with SIDE_MODULE | ||
|
||
emmake make -j${CPU_COUNT} ${VERBOSE_AT} | ||
emmake make -j${CPU_COUNT} | ||
emmake make install | ||
|
||
# Not packaging any shared libraries | ||
rm $PREFIX/lib/libpng*.la |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters