Skip to content

Commit

Permalink
Auto merge of #3013 - BelovDV:handle-c-circular-dependence, r=JohnTit…
Browse files Browse the repository at this point in the history
…or,petrochenkov

handle c circular dependence (linux gnu)

Repeating libc allows solve [this fixme](https://github.com/rust-lang/rust/blob/master/compiler/rustc_codegen_ssa/src/back/link.rs#:~:text=//%20HACK/FIXME%3A%20Fixup,the%20libc%20crate.) in rust compiler.
  • Loading branch information
bors committed Nov 27, 2022
2 parents d5691a0 + 141a890 commit c943911
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/mod.rs
Expand Up @@ -329,6 +329,8 @@ cfg_if! {
cfg(target_feature = "crt-static"))]
#[link(name = "gcc", kind = "static", modifiers = "-bundle",
cfg(target_feature = "crt-static"))]
#[link(name = "c", kind = "static", modifiers = "-bundle",
cfg(target_feature = "crt-static"))]
#[link(name = "util", cfg(not(target_feature = "crt-static")))]
#[link(name = "rt", cfg(not(target_feature = "crt-static")))]
#[link(name = "pthread", cfg(not(target_feature = "crt-static")))]
Expand Down

0 comments on commit c943911

Please sign in to comment.