secp-wasm.sh (446B)
1 #!/usr/bin/env bash 2 3 cd deps/secp256k1 4 5 export CC=emcc 6 export AR=emar 7 export RANLIB=emranlib 8 9 export PREFIX="$(pwd)/libsecp256k1-wasm" 10 11 mkdir -p $PREFIX || exit 1 12 13 make distclean > /dev/null 14 15 ./configure --disable-shared \ 16 --disable-tests \ 17 --disable-exhaustive-tests \ 18 --disable-benchmark \ 19 --enable-module-ecdh \ 20 --prefix="$PREFIX" 21 22 make -j3 install || exit 1 23 24 rm -rf -- "$PREFIX/tmp" 25 make distclean > /dev/null