From 2af8a7266370b7e641c79bef9425031e6fe68a27 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Fri, 4 Dec 2020 23:47:12 +0100 Subject: [PATCH] Mono: Don't use -rdynamic when compiling for WASM `-rdynamic` was causing the emsdk linker to silently fail to generate the output `.wasm` file (even though exit code was 0). --- modules/mono/build_scripts/mono_configure.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/mono/build_scripts/mono_configure.py b/modules/mono/build_scripts/mono_configure.py index 60570041666..62fd64cf660 100644 --- a/modules/mono/build_scripts/mono_configure.py +++ b/modules/mono/build_scripts/mono_configure.py @@ -262,7 +262,8 @@ def configure(env, env_mono): env_mono.Append(CPPDEFINES=["_REENTRANT"]) if mono_static: - env.Append(LINKFLAGS=["-rdynamic"]) + if not is_javascript: + env.Append(LINKFLAGS=["-rdynamic"]) mono_lib_file = os.path.join(mono_lib_path, "lib" + mono_lib + ".a")