Fix linking c++ runtimes on AIX

This commit is contained in:
Kai Luo 2024-04-02 17:17:13 +08:00
parent e2cf2cb303
commit 1f2d1420cb

View File

@ -391,6 +391,11 @@ fn main() {
}
}
// libc++abi have to be specified explicitly on AIX.
if target.contains("aix") {
println!("cargo:rustc-link-lib=c++abi");
}
// Libstdc++ depends on pthread which Rust doesn't link on MinGW
// since nothing else requires it.
if target.ends_with("windows-gnu") {