summaryrefslogtreecommitdiff
path: root/experimental/mrustc/rustc-0005-Prefer-libgcc_eh-over-libunwind-for-musl.patch
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2024-12-18 03:03:48 +0000
committerZach van Rijn <me@zv.io>2024-12-18 03:03:48 +0000
commit90c4ae64bb28a5e16eea6a85ddaef7d227ef11e7 (patch)
tree82cfad28f5fb8aab2216147ffb523dc1395b8db5 /experimental/mrustc/rustc-0005-Prefer-libgcc_eh-over-libunwind-for-musl.patch
parent803c617fc610d5872e32c08f362586d550d87701 (diff)
downloadpackages-zv/mrustc.tar.gz
packages-zv/mrustc.tar.bz2
packages-zv/mrustc.tar.xz
packages-zv/mrustc.zip
add adelie rust patches?zv/mrustc
Diffstat (limited to 'experimental/mrustc/rustc-0005-Prefer-libgcc_eh-over-libunwind-for-musl.patch')
-rw-r--r--experimental/mrustc/rustc-0005-Prefer-libgcc_eh-over-libunwind-for-musl.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/experimental/mrustc/rustc-0005-Prefer-libgcc_eh-over-libunwind-for-musl.patch b/experimental/mrustc/rustc-0005-Prefer-libgcc_eh-over-libunwind-for-musl.patch
new file mode 100644
index 000000000..9c06a9e33
--- /dev/null
+++ b/experimental/mrustc/rustc-0005-Prefer-libgcc_eh-over-libunwind-for-musl.patch
@@ -0,0 +1,25 @@
+From 78ae73f09d07c847ede1dc683b8907f5bd5bd17f Mon Sep 17 00:00:00 2001
+From: Samuel Holland <samuel@sholland.org>
+Date: Sat, 9 Sep 2017 00:14:16 -0500
+Subject: [PATCH 05/13] Prefer libgcc_eh over libunwind for musl
+
+---
+ library/unwind/src/lib.rs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/library/unwind/src/lib.rs b/library/unwind/src/lib.rs
+index 079626f0fea..590fca0acfa 100644
+--- a/library/unwind/src/lib.rs
++++ b/library/unwind/src/lib.rs
+@@ -49,7 +49,7 @@
+ #[link(name = "unwind", cfg(not(target_feature = "crt-static")))]
+ extern "C" {}
+ } else {
+- #[link(name = "unwind", kind = "static", modifiers = "-bundle", cfg(target_feature = "crt-static"))]
++ #[link(name = "gcc_eh", kind = "static", modifiers = "-bundle", cfg(target_feature = "crt-static"))]
+ #[link(name = "gcc_s", cfg(not(target_feature = "crt-static")))]
+ extern "C" {}
+ }
+--
+2.35.1
+