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

emscripten: enable EVAL_CTORS for WASM builds

This commit is contained in:
Frank Denis 2023-02-16 19:25:56 +01:00
parent 82696ef8c4
commit 6bb5197c2c

View File

@ -80,7 +80,7 @@ if [ "$DIST" = yes ]; then
}
emmake make $MAKE_FLAGS install || exit 1
emccLibsodium "${PREFIX}/lib/libsodium.asm.tmp.js" -Oz -s WASM=0
emccLibsodium "${PREFIX}/lib/libsodium.wasm.tmp.js" -O3 -s WASM=1
emccLibsodium "${PREFIX}/lib/libsodium.wasm.tmp.js" -O3 -s WASM=1 -s EVAL_CTORS=1
cat >"${PREFIX}/lib/libsodium.js" <<-EOM
var Module;