From 141a890b762e3a7be1bfd08d82450f38032bfb02 Mon Sep 17 00:00:00 2001 From: Daniil Belov <70999565+BelovDV@users.noreply.github.com> Date: Wed, 16 Nov 2022 18:26:11 +0300 Subject: [PATCH] handle c circular dependence (linux gnu) --- src/unix/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 74df3c3be9b6c..fb9ebf792e53d 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")))]