mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
solaris: add -lm
This commit is contained in:
parent
74bbf592d1
commit
367f8d6130
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user