minetest-wasm/build_zlib.sh

15 lines
215 B
Bash
Executable File

#!/bin/bash -eux
source common.sh
pushd "$BUILD_DIR"
rm -rf zlib
cp -a "$SOURCES_DIR/zlib" zlib
pushd zlib
emconfigure ./configure --static --prefix="$INSTALL_DIR"
emmake make
emmake make install
echo "ZLIB OK"