summaryrefslogblamecommitdiff
path: root/user/rust/0006-Prefer-libgcc_eh-over-libunwind-for-musl.patch
blob: e3a4b47cf540bc69d05a011e87858a846f3d5635 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                                      

                                          
                                                               





                                                        
                                   

                          
                           







                                                                              
      
 
From 916ce9740ddd2e41a567f821f9c0e86faa3c8269 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/23] 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 954eb9d6d0..a127aa5d96 100644
--- a/src/libunwind/lib.rs
+++ b/src/libunwind/lib.rs
@@ -36,6 +36,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.19.2