Skip to content

Commit 99e79c0

Browse files
authored
Rollup merge of rust-lang#54402 - bgermann:master, r=alexcrichton
Use no_default_libraries for all NetBSD flavors The no_default_libraries was introduced in rust-lang#28578 because the NetBSD-based rumprun needed to disable the link flag. This moves the definition to be used by all NetBSD linker flavors to close rust-lang#49627. A different solution would be adding -lc but as there is no platform with explicit -lc, this approach is used.
2 parents a112600 + 36d562f commit 99e79c0

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/librustc_target/spec/netbsd_base.rs

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ pub fn opts() -> TargetOptions {
2929
executables: true,
3030
target_family: Some("unix".to_string()),
3131
linker_is_gnu: true,
32+
no_default_libraries: false,
3233
has_rpath: true,
3334
pre_link_args: args,
3435
position_independent_executables: true,

src/librustc_target/spec/x86_64_rumprun_netbsd.rs

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ pub fn target() -> TargetResult {
2121
base.has_rpath = false;
2222
base.position_independent_executables = false;
2323
base.disable_redzone = true;
24-
base.no_default_libraries = false;
2524
base.exe_allocation_crate = None;
2625
base.stack_probes = true;
2726

0 commit comments

Comments
 (0)