Skip to content

Commit 537b3aa

Browse files
committed
Remove -lc, -lm from the target spec - the cross compiler will link those
1 parent 57950fa commit 537b3aa

File tree

2 files changed

+23
-31
lines changed

2 files changed

+23
-31
lines changed

src/Cargo.lock

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/librustc_back/target/redox_base.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,14 @@ pub fn opts() -> TargetOptions {
2525
"-Wl,--as-needed".to_string(),
2626

2727
// Always enable NX protection when it is available
28-
"-Wl,-z,noexecstack".to_string(),
29-
30-
// Static link
31-
"-static".to_string()
32-
],
33-
late_link_args: vec![
34-
"-lc".to_string(),
35-
"-lm".to_string()
28+
"-Wl,-z,noexecstack".to_string()
3629
],
3730
executables: true,
3831
relocation_model: "static".to_string(),
3932
disable_redzone: true,
4033
eliminate_frame_pointer: false,
4134
target_family: None,
4235
linker_is_gnu: true,
43-
no_default_libraries: true,
4436
lib_allocation_crate: "alloc_system".to_string(),
4537
exe_allocation_crate: "alloc_system".to_string(),
4638
has_elf_tls: true,

0 commit comments

Comments
 (0)