Fix build on AIX

This commit is contained in:
Kai Luo 2024-04-02 17:25:22 +08:00
parent 1f2d1420cb
commit 00f7f57159

View File

@ -391,9 +391,10 @@ fn main() {
}
}
// libc++abi have to be specified explicitly on AIX.
// libc++abi and libunwind have to be specified explicitly on AIX.
if target.contains("aix") {
println!("cargo:rustc-link-lib=c++abi");
println!("cargo:rustc-link-lib=unwind");
}
// Libstdc++ depends on pthread which Rust doesn't link on MinGW