We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc145ce commit 18f8657Copy full SHA for 18f8657
compiler/rustc_codegen_ssa/src/back/link.rs
@@ -2753,6 +2753,13 @@ fn add_upstream_rust_crates(
2753
.find(|(ty, _)| *ty == crate_type)
2754
.expect("failed to find crate type in dependency format list");
2755
2756
+ 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
2759
+ // https://www.ibm.com/docs/en/aix/7.3?topic=l-ld-command.
2760
+ cmd.link_or_cc_arg("-bnoipath");
2761
+ }
2762
+
2763
for &cnum in &codegen_results.crate_info.used_crates {
2764
// We may not pass all crates through to the linker. Some crates may appear statically in
2765
// an existing dylib, meaning we'll pick up all the symbols from the dylib.
0 commit comments