summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-11-27 10:39:19 +0000
committerbors <bors@rust-lang.org>2022-11-27 10:39:19 +0000
commitc943911e5d7faaa974389c1843a83e70a23ec660 (patch)
tree9bb62d1117bcf0b8ff10ebcb9c44e52a72a1e2cd
parentd5691a08a8d44177a99749734e854367086c9535 (diff)
parent141a890b762e3a7be1bfd08d82450f38032bfb02 (diff)
downloadrust-libc-c943911e5d7faaa974389c1843a83e70a23ec660.tar.gz
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.
-rw-r--r--src/unix/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/mod.rs b/src/unix/mod.rs
index 74df3c3be9..fb9ebf792e 100644
--- a/src/unix/mod.rs
+++ b/src/unix/mod.rs
@@ -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")))]