Skip to content

Commit 1ae1f8c

Browse files
committed
Clarify comment
1 parent 18f8657 commit 1ae1f8c

File tree

1 file changed

+4
-2
lines changed
  • compiler/rustc_codegen_ssa/src/back

1 file changed

+4
-2
lines changed

compiler/rustc_codegen_ssa/src/back/link.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -2754,8 +2754,10 @@ fn add_upstream_rust_crates(
27542754
.expect("failed to find crate type in dependency format list");
27552755

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

0 commit comments

Comments
 (0)