diff lang/rust/patch-clang.patch @ 1176:e45b5d1810ab

lang/rust: initial import, closes #1097
author David Demelier <markand@malikania.fr>
date Wed, 23 Oct 2019 07:10:36 +0200
parents
children 6af48cb79e02
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/rust/patch-clang.patch	Wed Oct 23 07:10:36 2019 +0200
@@ -0,0 +1,20 @@
+--- 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 {}