]> git.lizzy.rs Git - rust.git/commitdiff
Add openlibm to redox
authorJeremy Soller <jackpot51@gmail.com>
Thu, 15 Dec 2016 22:30:50 +0000 (15:30 -0700)
committerJeremy Soller <jackpot51@gmail.com>
Thu, 15 Dec 2016 23:33:24 +0000 (16:33 -0700)
src/librustc_back/target/redox_base.rs

index fc4c68276b65197c3c9d20efb50e1a8ed064c1ec..d8c83b39d8ef0dacb446fe22794082d5d5dfc9c2 100644 (file)
@@ -33,6 +33,10 @@ pub fn opts() -> TargetOptions {
             // Static link
             "-static".to_string()
         ],
+        late_link_args: vec![
+            // Link to openlibm for math functions
+            "-lopenlibm".to_string()
+        ],
         executables: true,
         relocation_model: "static".to_string(),
         disable_redzone: true,