Skip to content

Commit

Permalink
Remove -lc, -lm from the target spec - the cross compiler will link t…
Browse files Browse the repository at this point in the history
…hose
  • Loading branch information
jackpot51 committed Jan 3, 2017
1 parent 57950fa commit 537b3aa
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 31 deletions.
44 changes: 22 additions & 22 deletions src/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 1 addition & 9 deletions src/librustc_back/target/redox_base.rs
Expand Up @@ -25,22 +25,14 @@ 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(),
disable_redzone: true,
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,
Expand Down

0 comments on commit 537b3aa

Please sign in to comment.