mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-23 12:05:11 -07:00
emscripten: enable EVAL_CTORS for WASM builds
This commit is contained in:
parent
82696ef8c4
commit
6bb5197c2c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user