diff options
| author | Jeremy Soller <jackpot51@gmail.com> | 2017-01-03 15:42:41 -0700 |
|---|---|---|
| committer | Jeremy Soller <jackpot51@gmail.com> | 2017-01-03 15:42:41 -0700 |
| commit | 537b3aa3fde7a8b76a663d61da2bb6699369b2c2 (patch) | |
| tree | 9a3055d8fd629355b0e69951fe5fe19900dc7310 /src/librustc_back | |
| parent | 57950faeb68754451f94062c11e3fcf830392025 (diff) | |
Remove -lc, -lm from the target spec - the cross compiler will link those
Diffstat (limited to 'src/librustc_back')
| -rw-r--r-- | src/librustc_back/target/redox_base.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/librustc_back/target/redox_base.rs b/src/librustc_back/target/redox_base.rs index 1dffff59809..c5e1e107753 100644 --- a/src/librustc_back/target/redox_base.rs +++ b/src/librustc_back/target/redox_base.rs @@ -25,14 +25,7 @@ pub fn opts() -> TargetOptions { "-Wl,--as-needed".to_string(), // Always enable NX protection when it is available - "-Wl,-z,noexecstack".to_string(), - - // Static link - "-static".to_string() - ], - late_link_args: vec![ - "-lc".to_string(), - "-lm".to_string() + "-Wl,-z,noexecstack".to_string() ], executables: true, relocation_model: "static".to_string(), @@ -40,7 +33,6 @@ pub fn opts() -> TargetOptions { eliminate_frame_pointer: false, target_family: None, linker_is_gnu: true, - no_default_libraries: true, lib_allocation_crate: "alloc_system".to_string(), exe_allocation_crate: "alloc_system".to_string(), has_elf_tls: true, |
