1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 10:05:05 -07:00

WASI: Put the stack before globals

See https://github.com/ziglang/zig/issues/4496
This commit is contained in:
Frank Denis 2020-07-28 15:06:04 +02:00
parent e60ac864bc
commit 7e9095bcc5

View File

@ -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"