diff --git a/spawn_worker/build.rs b/spawn_worker/build.rs index 4ce156ca5..12510f7d6 100644 --- a/spawn_worker/build.rs +++ b/spawn_worker/build.rs @@ -18,7 +18,10 @@ fn main() { if cfg!(target_os = "linux") { builder.flag("-Wl,--no-as-needed"); } - builder.link_dynamically("m"); // rust code generally requires libm. Just link against it. + // rust code generally requires libm. Just link against it. + builder.link_dynamically("m"); + // some old libc versions are unhappy if it gets linked in dynamically later on + builder.link_dynamically("pthread"); } else { builder.flag("-wd4996"); // disable deprecation warnings }