Android: -ldl must appear after -lgcc when linking

This commit is contained in:
Amanieu d'Antras 2021-11-30 02:42:35 +00:00
parent 6db0a0e9a4
commit 41e2a53c00

View File

@ -17,6 +17,9 @@ fn main() {
} else {
println!("cargo:rustc-link-lib=gcc");
}
// Android's unwinding library depends on dl_iterate_phdr in `libdl`.
println!("cargo:rustc-link-lib=dl");
} else if target.contains("freebsd") {
println!("cargo:rustc-link-lib=gcc_s");
} else if target.contains("netbsd") {