arm-musl: statically link to libunwind

This commit is contained in:
Jorge Aparicio 2016-07-26 20:09:50 -05:00
parent e50bcf3404
commit f0ec906d18

View File

@ -16,7 +16,7 @@ fn main() {
let target = env::var("TARGET").unwrap();
if target.contains("linux") {
if target.contains("musl") && (target.contains("x86_64") || target.contains("i686")) {
if target.contains("musl") && !target.contains("mips") {
println!("cargo:rustc-link-lib=static=unwind");
} else if !target.contains("android") {
println!("cargo:rustc-link-lib=gcc_s");