Auto merge of #1322 - redox-os:redox, r=gnzlbg

redox: support crt-static

This reuses the code from musl to add support to Redox for crt-static.

Linking to `m` is also unnecessary as it is included in `c`
This commit is contained in:
bors 2019-04-19 18:45:37 +00:00
commit a79c2d4d78

View File

@ -377,8 +377,11 @@ extern {
-> ::ssize_t;
}
#[link(name = "c")]
#[link(name = "m")]
#[cfg_attr(feature = "rustc-dep-of-std",
link(name = "c", kind = "static",
cfg(target_feature = "crt-static")))]
#[cfg_attr(feature = "rustc-dep-of-std",
link(name = "c", cfg(not(target_feature = "crt-static"))))]
extern {}
pub use self::net::*;