diff --git a/src/libunwind/lib.rs b/src/libunwind/lib.rs index 1cff0a6b1684ef0823c44bdfea8c800c69fc7840..ab901fe063be78f7d824a2c2151a2f8e0ff2ac1d 100644 --- a/src/libunwind/lib.rs +++ b/src/libunwind/lib.rs @@ -25,7 +25,12 @@ } } -#[cfg(any(target_env = "musl", target_os = "redox"))] +#[cfg(target_env = "musl")] #[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 {}