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:
commit
a79c2d4d78
@ -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::*;
|
||||
|
Loading…
Reference in New Issue
Block a user