Skip to content

Commit

Permalink
Support crt-static in Redox
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Apr 19, 2019
1 parent 173c5be commit c6ea443
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/redox/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,12 @@ 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 c6ea443

Please sign in to comment.