Skip to content

Commit 41e2a53

Browse files
committed
Android: -ldl must appear after -lgcc when linking
1 parent 6db0a0e commit 41e2a53

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/unwind/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ fn main() {
1717
} else {
1818
println!("cargo:rustc-link-lib=gcc");
1919
}
20+
21+
// Android's unwinding library depends on dl_iterate_phdr in `libdl`.
22+
println!("cargo:rustc-link-lib=dl");
2023
} else if target.contains("freebsd") {
2124
println!("cargo:rustc-link-lib=gcc_s");
2225
} else if target.contains("netbsd") {

0 commit comments

Comments
 (0)