cover more linux targets in libstd cargobuild
This commit is contained in:
parent
8f0479b2a5
commit
dbe23899cc
@ -27,19 +27,19 @@ fn main() {
|
||||
build_libbacktrace(&host, &target);
|
||||
}
|
||||
|
||||
if target.contains("unknown-linux") {
|
||||
if target.contains("linux") {
|
||||
if target.contains("musl") && (target.contains("x86_64") || target.contains("i686")) {
|
||||
println!("cargo:rustc-link-lib=static=unwind");
|
||||
} else if target.contains("android") {
|
||||
println!("cargo:rustc-link-lib=dl");
|
||||
println!("cargo:rustc-link-lib=log");
|
||||
println!("cargo:rustc-link-lib=gcc");
|
||||
} else {
|
||||
println!("cargo:rustc-link-lib=dl");
|
||||
println!("cargo:rustc-link-lib=rt");
|
||||
println!("cargo:rustc-link-lib=pthread");
|
||||
println!("cargo:rustc-link-lib=gcc_s");
|
||||
}
|
||||
} else if target.contains("android") {
|
||||
println!("cargo:rustc-link-lib=dl");
|
||||
println!("cargo:rustc-link-lib=log");
|
||||
println!("cargo:rustc-link-lib=gcc");
|
||||
} else if target.contains("freebsd") {
|
||||
println!("cargo:rustc-link-lib=execinfo");
|
||||
println!("cargo:rustc-link-lib=pthread");
|
||||
|
Loading…
Reference in New Issue
Block a user