Skip to content

Commit

Permalink
Android: -ldl must appear after -lgcc when linking
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Nov 30, 2021
1 parent 6db0a0e commit 41e2a53
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/unwind/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit 41e2a53

Please sign in to comment.