From e42c903f5ca823ff0e343ebc65818fcb8a57cc90 Mon Sep 17 00:00:00 2001 From: Kleis Auke Wolthuizen Date: Sun, 25 Dec 2022 12:25:26 +0100 Subject: [PATCH] Fix compatibility with Emscripten 3.1.28 --- build.sh | 2 ++ testsuite/emscripten-test-stuff/node-tests.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/build.sh b/build.sh index aa13b844..8aed2d17 100755 --- a/build.sh +++ b/build.sh @@ -38,6 +38,8 @@ export LDFLAGS="-L$TARGET/lib -O3 -sEXPORTED_FUNCTIONS=_main,_malloc,_free -sALL if [ "$WASM_BIGINT" = "true" ]; then export LDFLAGS+=" -sWASM_BIGINT" fi +# Ensure the `ffi_call` symbol can be found at link time +export LDFLAGS+=" -sLLD_REPORT_UNDEFINED=0" # Build paths export CPATH="$TARGET/include" diff --git a/testsuite/emscripten-test-stuff/node-tests.sh b/testsuite/emscripten-test-stuff/node-tests.sh index b31e2d68..5d1c4683 100755 --- a/testsuite/emscripten-test-stuff/node-tests.sh +++ b/testsuite/emscripten-test-stuff/node-tests.sh @@ -23,6 +23,8 @@ export LDFLAGS="-O3 -sEXPORTED_FUNCTIONS=_main,_malloc,_free -sALLOW_TABLE_GROWT if [ "$WASM_BIGINT" = "true" ]; then export LDFLAGS+=" -sWASM_BIGINT" fi +# Ensure the `ffi_call` symbol can be found at link time +export LDFLAGS+=" -sLLD_REPORT_UNDEFINED=0" # Specific variables for cross-compilation export CHOST="wasm32-unknown-linux" # wasm32-unknown-emscripten