about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbgermann <bgermann@users.noreply.github.com>2018-09-20 20:00:02 +0200
committerbgermann <bgermann@users.noreply.github.com>2018-09-20 20:00:02 +0200
commit36d562ff2305242d528d0d51b666e4a15e6bf811 (patch)
tree9c9ebb78b5bdfad0ae9d0bcd76aee1d92dd2f4e4
parent3bc2ca7e4f8507f82a4c357ee19300166bcd8099 (diff)
Use no_default_libraries for all NetBSD flavors
The no_default_libraries was introduced in #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 #49627.

A different solution would be adding -lc but as there is no platform
with explicit -lc, this approach is used.
-rw-r--r--src/librustc_target/spec/netbsd_base.rs1
-rw-r--r--src/librustc_target/spec/x86_64_rumprun_netbsd.rs1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_target/spec/netbsd_base.rs b/src/librustc_target/spec/netbsd_base.rs
index 8b6bb5dec91..8cb5a33cdb5 100644
--- a/src/librustc_target/spec/netbsd_base.rs
+++ b/src/librustc_target/spec/netbsd_base.rs
@@ -29,6 +29,7 @@ pub fn opts() -> TargetOptions {
         executables: true,
         target_family: Some("unix".to_string()),
         linker_is_gnu: true,
+        no_default_libraries: false,
         has_rpath: true,
         pre_link_args: args,
         position_independent_executables: true,
diff --git a/src/librustc_target/spec/x86_64_rumprun_netbsd.rs b/src/librustc_target/spec/x86_64_rumprun_netbsd.rs
index af846653af7..684bf5a6c10 100644
--- a/src/librustc_target/spec/x86_64_rumprun_netbsd.rs
+++ b/src/librustc_target/spec/x86_64_rumprun_netbsd.rs
@@ -21,7 +21,6 @@ pub fn target() -> TargetResult {
     base.has_rpath = false;
     base.position_independent_executables = false;
     base.disable_redzone = true;
-    base.no_default_libraries = false;
     base.exe_allocation_crate = None;
     base.stack_probes = true;