Skip to content

Commit a28e125

Browse files
committed
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.
2 parents 9eee230 + 91471c8 commit a28e125

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1635,7 +1635,7 @@ impl<'a> Builder<'a> {
16351635
// flesh out rpath support more fully in the future.
16361636
rustflags.arg("-Zosx-rpath-install-name");
16371637
Some("-Wl,-rpath,@loader_path/../lib")
1638-
} else if !target.contains("windows") {
1638+
} else if !target.contains("windows") && !target.contains("aix") {
16391639
rustflags.arg("-Clink-args=-Wl,-z,origin");
16401640
Some("-Wl,-rpath,$ORIGIN/../lib")
16411641
} else {

0 commit comments

Comments
 (0)