fix link error
This commit is contained in:
parent
d64ff98311
commit
b54c76c832
@ -636,7 +636,7 @@ fn link_binary(sess: session,
|
||||
// On linux librt and libdl are an indirect dependencies via rustrt,
|
||||
// and binutils 2.22+ won't add them automatically
|
||||
if sess.targ_cfg.os == session::os_linux {
|
||||
cc_args += ["-lrt", "-ldl"];
|
||||
cc_args += ["-lrt", "-ldl", "-lm"];
|
||||
}
|
||||
|
||||
if sess.targ_cfg.os == session::os_freebsd {
|
||||
|
Loading…
x
Reference in New Issue
Block a user