mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 06:20:02 -04:00
25 lines
No EOL
399 B
Bash
Executable file
25 lines
No EOL
399 B
Bash
Executable file
#!/bin/bash
|
|
|
|
#compile zlib for use with emscripten
|
|
|
|
set -x
|
|
set -e
|
|
|
|
CORE_COUNT=$(nproc --all)
|
|
PREFIX=$(realpath build/zlib-wasm)
|
|
|
|
cd build
|
|
rm -rf zlib
|
|
git clone -b v1.3.1 --depth=1 https://github.com/madler/zlib
|
|
cd zlib
|
|
|
|
emconfigure ./configure --static
|
|
emmake make -j$CORE_COUNT
|
|
|
|
rm -rf $PREFIX
|
|
mkdir -p $PREFIX/include
|
|
mkdir -p $PREFIX/lib
|
|
cp -r *.h $PREFIX/include
|
|
cp -r *.a $PREFIX/lib
|
|
|
|
cd ../../ |