Auto merge of #109525 - bzEq:aix-bootstrap-no-rpath, r=Mark-Simulacrum
Rpath is not supported on AIX Both `-Wl,-rapth` and `-Wl,-z,origin` are not supported on AIX. AIX linker is documented in https://www.ibm.com/docs/en/aix/7.1?topic=l-ld-command.
This commit is contained in:
commit
a28e125b21
1 changed files with 1 additions and 1 deletions
|
@ -1635,7 +1635,7 @@ impl<'a> Builder<'a> {
|
|||
// flesh out rpath support more fully in the future.
|
||||
rustflags.arg("-Zosx-rpath-install-name");
|
||||
Some("-Wl,-rpath,@loader_path/../lib")
|
||||
} else if !target.contains("windows") {
|
||||
} else if !target.contains("windows") && !target.contains("aix") {
|
||||
rustflags.arg("-Clink-args=-Wl,-z,origin");
|
||||
Some("-Wl,-rpath,$ORIGIN/../lib")
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue