32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
From 7e100ca9dad23efa1aafccd8faf86ec5fa85c351 Mon Sep 17 00:00:00 2001
|
|
From: q66 <daniel@octaforge.org>
|
|
Date: Sun, 3 May 2020 18:02:03 +0200
|
|
Subject: [PATCH 10/15] Fix dynamic linkage of musl libc for the libc crate
|
|
|
|
---
|
|
vendor/libc/src/unix/mod.rs | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/vendor/libc/src/unix/mod.rs b/vendor/libc/src/unix/mod.rs
|
|
index ecee44411..7ae05f24e 100644
|
|
--- a/vendor/libc/src/unix/mod.rs
|
|
+++ b/vendor/libc/src/unix/mod.rs
|
|
@@ -337,11 +337,11 @@ cfg_if! {
|
|
#[link(name = "c", cfg(not(target_feature = "crt-static")))]
|
|
extern {}
|
|
} else if #[cfg(target_env = "musl")] {
|
|
+ #[link(name = "c")]
|
|
+ extern {}
|
|
#[cfg_attr(feature = "rustc-dep-of-std",
|
|
- link(name = "c", kind = "static", modifiers = "-bundle",
|
|
+ link(name = "gcc", kind = "static", modifiers = "-bundle",
|
|
cfg(target_feature = "crt-static")))]
|
|
- #[cfg_attr(feature = "rustc-dep-of-std",
|
|
- link(name = "c", cfg(not(target_feature = "crt-static"))))]
|
|
extern {}
|
|
} else if #[cfg(target_os = "emscripten")] {
|
|
#[link(name = "c")]
|
|
--
|
|
2.37.2
|
|
|