Skip to content

Commit

Permalink
Merge pull request rust-lang#66 from alexcrichton/librt
Browse files Browse the repository at this point in the history
Link to librt on non-apple platforms
  • Loading branch information
alexcrichton committed Nov 20, 2015
2 parents 8531cc1 + 68a5c44 commit 453add4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: rust
sudo: required
dist: trusty
rust:
- 1.0.0
- beta
Expand Down
5 changes: 5 additions & 0 deletions src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,14 @@ cfg_if! {
} else if #[cfg(target_env = "musl")] {
#[link(name = "c", kind = "static")]
extern {}
} else if #[cfg(any(target_os = "macos", target_os = "ios"))] {
#[link(name = "c")]
#[link(name = "m")]
extern {}
} else {
#[link(name = "c")]
#[link(name = "m")]
#[link(name = "rt")]
extern {}
}
}
Expand Down

0 comments on commit 453add4

Please sign in to comment.