Repository: godot
Issue: duplicate symbol error when i use platform=javascript module_mono_enabled=yes
Labels: platform:web,topic:buildsystem,topic:dotnet

### Godot version

3.4.2-my-custom-double,3.x

### System information

Windows11,GLES3,NVIDIA GeForce RTX 2060

### Issue description

hello i'm trying to build my custom 3.x godot to double and camera relative rending ,now running on pc is ok but wasm is fail
I don't know if I did the right thing 

### Steps to reproduce

- emscripten:1.39.9
- mono: 6.12.0.147
    - build script use:godot-mono-builds
        -  ./wasm.py configure --target=runtime
        - ./wasm.py make --target=runtime
        - ./bcl.py make --product=wasm
- build script: scons platform=javascript tools=no module_mono_enabled=yes mono_prefix="C:\Users\DannyJones\Desktop\wasm-runtime-release" bcl="C:\Users\DannyJones\Desktop\bcl"
- error list:
	> wasm-ld: error: duplicate symbol: getpwnam_r
--- defined in C:\Users\DannyJones\Desktop\wasm-runtime-release\lib\libmonosgen-2.0.a(libmini_la-mini-wasm.o)
--- defined in D:\emsdksource\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\libstubs-debug.a(emscripten_libc_stubs.o)
wasm-ld: error: duplicate symbol: getpwuid_r
--- defined in C:\Users\DannyJones\Desktop\wasm-runtime-release\lib\libmonosgen-2.0.a(libmini_la-mini-wasm.o)
--- defined in D:\emsdksource\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\libstubs-debug.a(emscripten_libc_stubs.o)
wasm-ld: error: duplicate symbol: getgrnam
wasm-ld: error: duplicate symbol: pthread_sigmask
--- defined in C:\Users\DannyJones\Desktop\wasm-runtime-release\lib\libmonosgen-2.0.a(libmini_la-mini-wasm.o)
--- defined in D:\emsdksource\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten\libc-debug.a(pthread_sigmask.o)
em++: error: 'D:/emsdksource/upstream/bin\wasm-ld.exe -o bin\godot.javascript.debug.mono.wasm -whole-archive C:\Users\DannyJones\Desktop\wasm-runtime-release\lib\libmonosgen-2.0.a -no-whole-archive platform\javascript\audio_driver_javascript.javascript.debug.bc platform\javascript\godot_webgl2.javascript.debug.bc platform\javascript\http_client_javascript.javascript.debug.bc platform\javascript\javascript_singleton.javascript.debug.bc platform\javascript\javascript_main.javascript.debug.bc platform\javascript\os_javascript.javascript.debug.bc platform\javascript\api\javascript_tools_editor_plugin.javascript.debug.bc platform\javascript\javascript_runtime.javascript.debug.bc -LC:\Users\DannyJones\Desktop\wasm-runtime-release\lib main\libmain.javascript.debug.a modules\libmodules.javascript.debug.a platform\libplatform.javascript.debug.a drivers\libdrivers.javascript.debug.a scene\libscene.javascript.debug.a servers\libservers.javascript.debug.a core\libcore.javascript.debug.a modules\freetype\libfreetype_builtin.javascript.debug.a C:\Users\DannyJones\Desktop\wasm-runtime-release\lib\libmono-icall-table.a C:\Users\DannyJones\Desktop\wasm-runtime-release\lib\libmono-native.a C:\Users\DannyJones\Desktop\wasm-runtime-release\lib\libmono-ilgen.a C:\Users\DannyJones\Desktop\wasm-runtime-release\lib\libmono-ee-interp.a -LD:\emsdksource\upstream\emscripten\cache\sysroot\lib\wasm32-emscripten -lGL-webgl2-ofb -lal -lhtml5 -lstubs-debug -lc-debug -lcompiler_rt -lc++-noexcept -lc++abi-noexcept -ldlmalloc -lc_rt -lsockets -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr --import-undefined --export-if-defined=main --export-if-defined=__start_em_asm --export-if-defined=__stop_em_asm --export-if-defined=fflush --export=emscripten_stack_get_end --export=emscripten_stack_get_free --export=emscripten_stack_init --export=stackSave --export=stackRestore --export=stackAlloc --export=__wasm_call_ctors --export=__errno_location --export=malloc --export=setThrew --export=free --export=ntohs --export=htons --export=__dl_seterr --export=htonl --export=_get_tzname --export=_get_daylight --export=_get_timezone --export=memalign --export=emscripten_main_thread_process_queued_calls --export=__cxa_is_pointer_type --export=__cxa_can_catch --export=saveSetjmp --export-table -z stack-size=5242880 --initial-memory=33554432 --no-entry --max-memory=2147483648 --global-base=1024' failed (returned 1)scons: *** [bin\godot.javascript.debug.mono.js] Error 1scons: building terminated because of errors.

### Minimal reproduction project

_No response_