solaris: add -lm

pull/2125/head^2
Alexander Medvednikov 2019-09-27 00:53:57 +03:00
parent 74bbf592d1
commit 367f8d6130
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ fn (v mut V) cc() {
// Without these libs compilation will fail on Linux // Without these libs compilation will fail on Linux
// || os.user_os() == 'linux' // || os.user_os() == 'linux'
if v.pref.build_mode != .build_module && (v.os == .linux || v.os == .freebsd || v.os == .openbsd || if v.pref.build_mode != .build_module && (v.os == .linux || v.os == .freebsd || v.os == .openbsd ||
v.os == .netbsd || v.os == .dragonfly) { v.os == .netbsd || v.os == .dragonfly || v.os == .solaris) {
a << '-lm -lpthread ' a << '-lm -lpthread '
// -ldl is a Linux only thing. BSDs have it in libc. // -ldl is a Linux only thing. BSDs have it in libc.
if v.os == .linux { if v.os == .linux {