diff options
author | gnzlbg <gonzalobg88@gmail.com> | 2018-02-27 15:47:18 +0100 |
---|---|---|
committer | gnzlbg <gonzalobg88@gmail.com> | 2018-02-27 15:47:18 +0100 |
commit | 988843834fde65503735a9cecfb7619edd276b09 (patch) | |
tree | 3a2f9e8c3c44cd2326cb7386b041f53b6576e909 /src/unix/mod.rs | |
parent | bb2a95c9f229593ad6ce135c7900fad75ef5c47d (diff) | |
download | rust-libc-988843834fde65503735a9cecfb7619edd276b09.tar.gz |
test --no-default-features and fix musl builds
Diffstat (limited to 'src/unix/mod.rs')
-rw-r--r-- | src/unix/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 0d344edc5f..fc19241d5c 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -277,8 +277,8 @@ cfg_if! { // cargo build, don't pull in anything extra as the libstd dep // already pulls in all libs. } else if #[cfg(target_env = "musl")] { - #[link(name = "c", kind = "static", cfg(target_feature = "crt-static"))] - #[link(name = "c", cfg(not(target_feature = "crt-static")))] + #[cfg_attr(feature = "stdbuild", link(name = "c", kind = "static", cfg(target_feature = "crt-static")))] + #[cfg_attr(feature = "stdbuild", link(name = "c", cfg(not(target_feature = "crt-static"))))] extern {} } else if #[cfg(target_os = "emscripten")] { #[link(name = "c")] |