diff --git a/src/unix/mod.rs b/src/unix/mod.rs index d53a382a01ae4..e8fa1cf9c7be3 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -389,8 +389,8 @@ cfg_if! { link(name = "c", cfg(not(target_feature = "crt-static"))))] extern {} } else if #[cfg(target_os = "emscripten")] { - #[link(name = "c")] - extern {} + // Don't pass -lc to Emscripten, it breaks. See: + // https://github.com/emscripten-core/emscripten/issues/22758 } else if #[cfg(all(target_os = "android", feature = "rustc-dep-of-std"))] { #[link(name = "c", kind = "static", modifiers = "-bundle", cfg(target_feature = "crt-static"))]