From 367f8d6130bc8a775eafebe54f60e6f9e91b4d5c Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 27 Sep 2019 00:53:57 +0300 Subject: [PATCH] solaris: add -lm --- compiler/cc.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/cc.v b/compiler/cc.v index 76347bc346..dc5dcc57f3 100644 --- a/compiler/cc.v +++ b/compiler/cc.v @@ -172,7 +172,7 @@ fn (v mut V) cc() { // Without these libs compilation will fail on Linux // || os.user_os() == 'linux' 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 ' // -ldl is a Linux only thing. BSDs have it in libc. if v.os == .linux {