view lang/rust/patch-clang.patch @ 1177:6dd3148ac08d

network/bridge-utils: initial import, closes #1221
author David Demelier <markand@malikania.fr>
date Wed, 23 Oct 2019 20:05:00 +0200
parents e45b5d1810ab
children 6af48cb79e02
line wrap: on
line source

--- src/librustc_target/spec/linux_musl_base.rs.orig	2019-10-15 14:51:21.989949084 +0200
+++ src/librustc_target/spec/linux_musl_base.rs	2019-10-15 14:51:42.253949707 +0200
@@ -24,6 +24,7 @@
     base.pre_link_objects_exe_crt.push("crt1.o".to_string());
     base.pre_link_objects_exe_crt.push("crti.o".to_string());
     base.post_link_objects_crt.push("crtn.o".to_string());
+    base.post_link_objects_crt.push("-lunwind".to_string());
 
     // These targets statically link libc by default
     base.crt_static_default = true;
--- src/libunwind/lib.rs.orig	2019-10-15 14:54:58.457955734 +0200
+++ src/libunwind/lib.rs	2019-10-15 14:55:28.705956663 +0200
@@ -23,6 +23,5 @@
 }
 
 #[cfg(target_env = "musl")]
-#[link(name = "unwind", kind = "static", cfg(target_feature = "crt-static"))]
-#[link(name = "gcc_s", cfg(not(target_feature = "crt-static")))]
+#[link(name = "unwind")]
 extern {}