summaryrefslogtreecommitdiff
path: root/experimental/rust-beta/0005-Prefer-libgcc_eh-over-libunwind-for-musl.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2024-07-31 20:53:28 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2024-10-17 00:58:45 -0500
commit3b9833ebc81444bcb1e6817d47fc14b3e49a12e1 (patch)
tree3aed2a7d34b50123532710f919ef235f6fb2d79e /experimental/rust-beta/0005-Prefer-libgcc_eh-over-libunwind-for-musl.patch
parent61e81c07dcfd7e671d004a300a9cfdff68a052f1 (diff)
downloadpackages-3b9833ebc81444bcb1e6817d47fc14b3e49a12e1.tar.gz
packages-3b9833ebc81444bcb1e6817d47fc14b3e49a12e1.tar.bz2
packages-3b9833ebc81444bcb1e6817d47fc14b3e49a12e1.tar.xz
packages-3b9833ebc81444bcb1e6817d47fc14b3e49a12e1.zip
experimental/rust-beta: Add 1.81.0 beta patchset
Diffstat (limited to 'experimental/rust-beta/0005-Prefer-libgcc_eh-over-libunwind-for-musl.patch')
-rw-r--r--experimental/rust-beta/0005-Prefer-libgcc_eh-over-libunwind-for-musl.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/experimental/rust-beta/0005-Prefer-libgcc_eh-over-libunwind-for-musl.patch b/experimental/rust-beta/0005-Prefer-libgcc_eh-over-libunwind-for-musl.patch
new file mode 100644
index 000000000..cbb22cd45
--- /dev/null
+++ b/experimental/rust-beta/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/12] 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
+@@ -63,7 +63,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
+