view lang/rust/patch-clang.patch @ 1341:9f35c15329d1 default tip @

dev/meson: downgrade to 0.59.4 due to many regression
author David Demelier <markand@malikania.fr>
date Wed, 22 Dec 2021 21:52:57 +0100
parents 6af48cb79e02
children
line wrap: on
line source

--- 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 {}
--- src/librustc_target/spec/linux_musl_base.rs.orig	2019-09-23 21:15:52.000000000 +0000
+++ src/librustc_target/spec/linux_musl_base.rs	2019-10-31 13:19:59.189184637 +0000
@@ -24,9 +24,10 @@
     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;
+    base.crt_static_default = false;
     // These targets allow the user to choose between static and dynamic linking.
     base.crt_static_respected = true;