Skip to content

Commit

Permalink
Clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
daltenty committed Dec 6, 2024
1 parent 18f8657 commit 1ae1f8c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions compiler/rustc_codegen_ssa/src/back/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2754,8 +2754,10 @@ fn add_upstream_rust_crates(
.expect("failed to find crate type in dependency format list");

if sess.target.is_like_aix {
// Unlike GNU's ld, AIX linker doesn't feature `-soname=...` when output
// a shared library. Instead, AIX linker offers `(no)ipath`. See
// Unlike ELF linkers, AIX doesn't feature `DT_SONAME` to override
// the dependency name when outputing a shared library. Thus, `ld` will
// use the full path to shared libraries as the dependency if passed it
// by default unless `noipath` is passed.
// https://www.ibm.com/docs/en/aix/7.3?topic=l-ld-command.
cmd.link_or_cc_arg("-bnoipath");
}
Expand Down

0 comments on commit 1ae1f8c

Please sign in to comment.