diff --git a/src/libstd/rt/heap.rs b/src/libstd/rt/heap.rs index 30583f76330b9..ffe6dccfa15c5 100644 --- a/src/libstd/rt/heap.rs +++ b/src/libstd/rt/heap.rs @@ -25,7 +25,7 @@ extern { } // -lpthread needs to occur after -ljemalloc, the earlier argument isn't enough -#[cfg(not(windows))] +#[cfg(not(windows), not(target_os = "android"))] #[link(name = "pthread")] extern {}