Skip to content

Commit c943911

Browse files
committed
Auto merge of #3013 - BelovDV:handle-c-circular-dependence, r=JohnTitor,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.
2 parents d5691a0 + 141a890 commit c943911

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,8 @@ cfg_if! {
329329
cfg(target_feature = "crt-static"))]
330330
#[link(name = "gcc", kind = "static", modifiers = "-bundle",
331331
cfg(target_feature = "crt-static"))]
332+
#[link(name = "c", kind = "static", modifiers = "-bundle",
333+
cfg(target_feature = "crt-static"))]
332334
#[link(name = "util", cfg(not(target_feature = "crt-static")))]
333335
#[link(name = "rt", cfg(not(target_feature = "crt-static")))]
334336
#[link(name = "pthread", cfg(not(target_feature = "crt-static")))]

0 commit comments

Comments
 (0)