File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
branches/try/src/rustc/back Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: b54c76c832930c1eab4e1e944117300eacb12625
5
+ refs/heads/try: 9975ad073acc408ee1bb4fe776daeeb175aa8816
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -636,7 +636,12 @@ fn link_binary(sess: session,
636
636
// On linux librt and libdl are an indirect dependencies via rustrt,
637
637
// and binutils 2.22+ won't add them automatically
638
638
if sess. targ_cfg. os == session:: os_linux {
639
- cc_args += [ "-lrt" , "-ldl" , "-lm" ] ;
639
+ cc_args += [ "-lrt" , "-ldl" ] ;
640
+
641
+ // LLVM implements the `frem` instruction as a call to `fmod`,
642
+ // which lives in libm. Similar to above, on some linuxes we
643
+ // have to be explicit about linking to it. See #2510
644
+ cc_args += [ "-lm" ] ;
640
645
}
641
646
642
647
if sess. targ_cfg. os == session:: os_freebsd {
You can’t perform that action at this time.
0 commit comments