Skip to content

Commit

Permalink
Auto merge of #1322 - redox-os:redox, r=gnzlbg
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
bors committed Apr 19, 2019
2 parents 0d01633 + 319b7b5 commit a79c2d4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/redox/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
Expand Down

0 comments on commit a79c2d4

Please sign in to comment.