summaryrefslogblamecommitdiff
path: root/user/rust/0006-Prefer-libgcc_eh-over-libunwind-for-musl.patch
blob: 5a2b6c42207eaaa2629bdbd5f4b7f2caeabb4d7a (plain) (tree)
1
2
3
4
                                                                      

                                          
                                                               



















                                                                              
From e3b90583112fd59255406f245db1856e0c21dab3 Mon Sep 17 00:00:00 2001
From: Samuel Holland <samuel@sholland.org>
Date: Sat, 9 Sep 2017 00:14:16 -0500
Subject: [PATCH 06/29] Prefer libgcc_eh over libunwind for musl

---
 src/libunwind/lib.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libunwind/lib.rs b/src/libunwind/lib.rs
index 2b3c19c067..8233beada0 100644
--- a/src/libunwind/lib.rs
+++ b/src/libunwind/lib.rs
@@ -35,6 +35,6 @@ cfg_if! {
 }
 
 #[cfg(target_env = "musl")]
-#[link(name = "unwind", kind = "static", cfg(target_feature = "crt-static"))]
+#[link(name = "gcc_eh", cfg(target_feature = "crt-static"))]
 #[link(name = "gcc_s", cfg(not(target_feature = "crt-static")))]
 extern {}
-- 
2.18.0