Skip to content

Commit d1f8fb2

Browse files
committed
std: Explicitly link to libm for freebsd
Apparently we had forgotten to do this for freebsd, causing possible problems on FreeBSD 10. The discussion in #12324 has some more details about how it's missing.
1 parent 1f5571a commit d1f8fb2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/rtdeps.rs

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ extern {}
3838
#[cfg(target_os = "freebsd")]
3939
#[link(name = "execinfo")]
4040
#[link(name = "pthread")]
41+
#[link(name = "m")]
4142
extern {}
4243

4344
#[cfg(target_os = "macos")]

0 commit comments

Comments
 (0)