Skip to content

Commit 979a225

Browse files
committed
rustc: Don't hardcode -lm
It does not appear to serve a purpose
1 parent 247db70 commit 979a225

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/rustc/back/link.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -608,9 +608,6 @@ fn link_binary(sess: session,
608608
cc_args += ["-Wl,-install_name,@rpath/"
609609
+ path::basename(output)];
610610
}
611-
} else {
612-
// FIXME: why do we hardcode -lm?
613-
cc_args += ["-lm"];
614611
}
615612

616613
// Always want the runtime linked in

0 commit comments

Comments
 (0)