File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
compiler/rustc_codegen_ssa/src/back Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -2753,6 +2753,13 @@ fn add_upstream_rust_crates(
27532753 . find ( |( ty, _) | * ty == crate_type)
27542754 . expect ( "failed to find crate type in dependency format list" ) ;
27552755
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+
27562763 for & cnum in & codegen_results. crate_info . used_crates {
27572764 // We may not pass all crates through to the linker. Some crates may appear statically in
27582765 // an existing dylib, meaning we'll pick up all the symbols from the dylib.
You can’t perform that action at this time.
0 commit comments