Skip to content

Commit 07e313d

Browse files
committed
Add openlibm to redox
1 parent 773a0a2 commit 07e313d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustc_back/target/redox_base.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ pub fn opts() -> TargetOptions {
3333
// Static link
3434
"-static".to_string()
3535
],
36+
late_link_args: vec![
37+
// Link to openlibm for math functions
38+
"-lopenlibm".to_string()
39+
],
3640
executables: true,
3741
relocation_model: "static".to_string(),
3842
disable_redzone: true,

0 commit comments

Comments
 (0)