Only add an automatic SONAME for Rust dylibs

This commit is contained in:
Josh Stone
2024-09-27 15:53:26 -07:00
parent fa724e5d8c
commit f46057bf1c
3 changed files with 80 additions and 21 deletions

View File

@@ -2490,7 +2490,7 @@ fn add_order_independent_options(
}
}
cmd.set_output_kind(link_output_kind, out_filename);
cmd.set_output_kind(link_output_kind, crate_type, out_filename);
add_relro_args(cmd, sess);