diff options
author | davidovski <david@davidovski.xyz> | 2022-12-19 23:07:05 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-12-19 23:07:05 +0000 |
commit | 05d004dfe0c9a9d898fac8a4a0292ca2a74ca391 (patch) | |
tree | 0b058ac267139f2a0525dec42b307664363e5b11 /skip/rust/0006-Prefer-libgcc_eh-over-libunwind-for-musl.patch | |
parent | 4c61af227b0fb3e028c877dc1c2e0b6513960762 (diff) |
Making things work
Diffstat (limited to 'skip/rust/0006-Prefer-libgcc_eh-over-libunwind-for-musl.patch')
-rw-r--r-- | skip/rust/0006-Prefer-libgcc_eh-over-libunwind-for-musl.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/skip/rust/0006-Prefer-libgcc_eh-over-libunwind-for-musl.patch b/skip/rust/0006-Prefer-libgcc_eh-over-libunwind-for-musl.patch new file mode 100644 index 0000000..30cb66f --- /dev/null +++ b/skip/rust/0006-Prefer-libgcc_eh-over-libunwind-for-musl.patch @@ -0,0 +1,24 @@ +Additions for build.rs by q66, necessary for our musl setup. + +From 1eb558f246269606c6d8d73824ef6b44fa10764e Mon Sep 17 00:00:00 2001 +From: Samuel Holland <samuel@sholland.org> +Date: Sat, 9 Sep 2017 00:14:16 -0500 +Subject: [PATCH 06/16] Prefer libgcc_eh over libunwind for musl + +--- + src/libunwind/lib.rs | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/libunwind/lib.rs b/src/libunwind/lib.rs +index 9182e349b19..0377fbb58fc 100644 +--- a/library/unwind/src/lib.rs ++++ b/library/unwind/src/lib.rs +@@ -51,7 +51,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", cfg(target_feature = "crt-static"))] + #[link(name = "gcc_s", cfg(not(target_feature = "crt-static")))] + extern "C" {} + } |