1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-23 20:15:19 -07:00

set ED25519_NONDETERMINISTIC on WebAssembly/WASI target

This commit is contained in:
Frank Denis 2019-04-30 19:44:13 +02:00
parent 261761a02c
commit 38ebbac336

View File

@ -11,7 +11,7 @@ export PREFIX="$(pwd)/libsodium-wasm32-wasi"
mkdir -p $PREFIX || exit 1
export CC="clang"
export CFLAGS="--target=wasm32-unknkown-wasi --sysroot=${WASI_SYSROOT} -O2"
export CFLAGS="-DED25519_NONDETERMINISTIC=1 --target=wasm32-unknkown-wasi --sysroot=${WASI_SYSROOT} -O2"
export LDFLAGS="-s -Wl,--no-threads"
export NM="llvm-nm"
export AR="llvm-ar"