Skip to content

Commit c9eab6a

Browse files
committed
---
yaml --- r: 16287 b: refs/heads/try c: 9975ad0 h: refs/heads/master i: 16285: b05369b 16283: 880246b 16279: 1a10d06 16271: f33e8a0 16255: 0066a47 v: v3
1 parent 9da8587 commit c9eab6a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: b54c76c832930c1eab4e1e944117300eacb12625
5+
refs/heads/try: 9975ad073acc408ee1bb4fe776daeeb175aa8816
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/rustc/back/link.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,12 @@ fn link_binary(sess: session,
636636
// On linux librt and libdl are an indirect dependencies via rustrt,
637637
// and binutils 2.22+ won't add them automatically
638638
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"];
640645
}
641646

642647
if sess.targ_cfg.os == session::os_freebsd {

0 commit comments

Comments
 (0)