mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Android: -ldl must appear after -lgcc when linking
This commit is contained in:
parent
6db0a0e9a4
commit
41e2a53c00
@ -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") {
|
||||
|
Loading…
Reference in New Issue
Block a user