about summary refs log tree commit diff
path: root/src/libunwind
diff options
context:
space:
mode:
authorJeremy Soller <jeremy@system76.com>2019-04-07 08:39:54 -0600
committerJeremy Soller <jeremy@system76.com>2019-08-06 16:18:23 -0600
commit0498da9a3dc061f604fcfb9b56bd889e07f2b7e2 (patch)
treec297dc9d51cd63c0a1297426ae3633e3921dcb44 /src/libunwind
parent6a91782b72fca586b15ba68364bc7baab837af86 (diff)
redox: convert to target_family unix
Diffstat (limited to 'src/libunwind')
-rw-r--r--src/libunwind/build.rs2
-rw-r--r--src/libunwind/lib.rs5
2 files changed, 6 insertions, 1 deletions
diff --git a/src/libunwind/build.rs b/src/libunwind/build.rs
index 3545a691a15..da31a49ddf2 100644
--- a/src/libunwind/build.rs
+++ b/src/libunwind/build.rs
@@ -40,7 +40,7 @@ fn main() {
     } else if target.contains("haiku") {
         println!("cargo:rustc-link-lib=gcc_s");
     } else if target.contains("redox") {
-        println!("cargo:rustc-link-lib=gcc");
+        // redox is handled in lib.rs
     } else if target.contains("cloudabi") {
         println!("cargo:rustc-link-lib=unwind");
     }
diff --git a/src/libunwind/lib.rs b/src/libunwind/lib.rs
index b9ce71b6b84..8d916447128 100644
--- a/src/libunwind/lib.rs
+++ b/src/libunwind/lib.rs
@@ -24,3 +24,8 @@ cfg_if::cfg_if! {
 #[link(name = "unwind", kind = "static", cfg(target_feature = "crt-static"))]
 #[link(name = "gcc_s", cfg(not(target_feature = "crt-static")))]
 extern {}
+
+#[cfg(target_os = "redox")]
+#[link(name = "gcc_eh", kind = "static-nobundle", cfg(target_feature = "crt-static"))]
+#[link(name = "gcc_s", cfg(not(target_feature = "crt-static")))]
+extern {}