Skip to content

Commit

Permalink
Auto merge of #908 - malbarbo:musl-mips-static, r=alexcrichton
Browse files Browse the repository at this point in the history
Do not assume dynamic linking in musl/mips targets
  • Loading branch information
bors committed Jan 24, 2018
2 parents 9613051 + 042b707 commit 56444a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ cfg_if! {
} else if #[cfg(feature = "use_std")] {
// cargo build, don't pull in anything extra as the libstd dep
// already pulls in all libs.
} else if #[cfg(any(all(target_env = "musl", not(target_arch = "mips"))))] {
} else if #[cfg(target_env = "musl")] {
#[link(name = "c", kind = "static", cfg(target_feature = "crt-static"))]
#[link(name = "c", cfg(not(target_feature = "crt-static")))]
extern {}
Expand Down

0 comments on commit 56444a4

Please sign in to comment.