We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86f85c1 commit 01157e6Copy full SHA for 01157e6
src/librustc_back/target/redox_base.rs
@@ -33,10 +33,6 @@ pub fn opts() -> TargetOptions {
33
// Static link
34
"-static".to_string()
35
],
36
- late_link_args: vec![
37
- // Link to openlibm for math functions
38
- "-lopenlibm".to_string()
39
- ],
40
executables: true,
41
relocation_model: "static".to_string(),
42
disable_redzone: true,
src/libstd/build.rs
@@ -62,6 +62,8 @@ fn main() {
62
println!("cargo:rustc-link-lib=magenta");
63
println!("cargo:rustc-link-lib=mxio");
64
println!("cargo:rustc-link-lib=launchpad"); // for std::process
65
+ } else if target.contains("redox") {
66
+ println!("cargo:rustc-link-lib=openlibm");
67
}
68
69
0 commit comments