diff --git a/dist-build/wasm32-wasi.sh b/dist-build/wasm32-wasi.sh index cf6990fb..193e7686 100755 --- a/dist-build/wasm32-wasi.sh +++ b/dist-build/wasm32-wasi.sh @@ -21,7 +21,7 @@ mkdir -p $PREFIX || exit 1 export CC="clang" export CFLAGS="-DED25519_NONDETERMINISTIC=1 --target=wasm32-wasi --sysroot=${WASI_LIBC} -O2" -export LDFLAGS="-s -Wl,--no-threads" +export LDFLAGS="-s -Wl,--no-threads -Wl,--stack-first" export NM="llvm-nm" export AR="llvm-ar" export RANLIB="llvm-ranlib"