From 6bb5197c2cff96be8b2abebebe52cd1b7288e8d4 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 16 Feb 2023 19:25:56 +0100 Subject: [PATCH] emscripten: enable EVAL_CTORS for WASM builds --- dist-build/emscripten.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist-build/emscripten.sh b/dist-build/emscripten.sh index ab91244b..ecc1dffc 100755 --- a/dist-build/emscripten.sh +++ b/dist-build/emscripten.sh @@ -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;