Android: -ldl must appear after -lgcc when linking
This commit is contained in:
parent
6db0a0e9a4
commit
41e2a53c00
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue