Closed
Description
When dynamically linking Emscripten modules, Rust passes -lc
to Emscripten. This causes wasm-ld: error: unable to find library -lc-debug
. I see that -lc
is coming via EmLinker.link_dylib
. If I make link_dylib
into a no-op this fixes the problem, though maybe that has other bad side effects. I am not sure how to filter out libraries that shouldn't be statically linked into a dynamic library. But it would be great to fix this. I am currently using an emcc
linker wrapper that deletes the -lc
argument.