commando.html5/node_modules/lnsocket/tools/secp-wasm.sh
Captain Nick Lucifer* a0bc2d79de dot.dot.dot.exampol
2023-03-10 23:21:16 +05:45

27 lines
522 B
Bash
Executable file

#!/usr/bin/env bash
cd deps/secp256k1
export CC=emcc
export AR=emar
export RANLIB=emranlib
export PREFIX="$(pwd)/libsecp256k1-wasm"
mkdir -p $PREFIX || exit 1
make distclean > /dev/null
patch -N -p1 < ../../tools/0001-configure-customizable-AR-and-RANLIB.patch
./configure --disable-shared \
--disable-tests \
--disable-exhaustive-tests \
--disable-benchmark \
--enable-module-ecdh \
--prefix="$PREFIX"
make -j3 install || exit 1
rm -rf -- "$PREFIX/tmp"
make distclean > /dev/null