mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00

fix: AIX searches dynamic libraries in `LIBPATH`. ### What does this PR try to resolve? On IBM AIX machines people have encountered issues in `compiletest` and rustc's bootstrap builder. They haven't encountered any in cargo. This PR is made for avoiding potential failures in the future in cargo. It's documented in <https://www.ibm.com/support/pages/libpath-environment-variables-aix-platforms>: > The `LIBPATH` environment variable tells AIX applications where to find shared libraries when located in a different directories than those specified in the header section of the executable. See also the counterpart in <https://github.com/rust-lang/rust/pull/109526> ### How to verify and test this in Cargo's CI? This is indeed an issue. At IBM people are maintaining a buildbot since GitHub Action doesn't support AIX yet.