Don't link librt on android

This commit is contained in:
Alex Crichton 2015-11-22 10:14:13 -08:00
parent 90e0ceaada
commit 0c8e61ab4a

View File

@ -105,7 +105,9 @@ cfg_if! {
} else if #[cfg(target_env = "musl")] {
#[link(name = "c", kind = "static")]
extern {}
} else if #[cfg(any(target_os = "macos", target_os = "ios"))] {
} else if #[cfg(any(target_os = "macos",
target_os = "ios",
target_os = "android"))] {
#[link(name = "c")]
#[link(name = "m")]
extern {}