-ldl is only required on Linux

pull/1166/head
Alexander Medvednikov 2019-07-15 20:40:33 +02:00
parent 9b5383341d
commit 62e6e03492
1 changed files with 4 additions and 1 deletions

View File

@ -613,7 +613,10 @@ mut args := ''
// || os.user_os() == 'linux' // || os.user_os() == 'linux'
if v.pref.build_mode != .build && (v.os == .linux || v.os == .freebsd || v.os == .openbsd || if v.pref.build_mode != .build && (v.os == .linux || v.os == .freebsd || v.os == .openbsd ||
v.os == .netbsd || v.os == .dragonfly) { v.os == .netbsd || v.os == .dragonfly) {
a << '-lm -lpthread' // -ldl a << '-lm -lpthread '
if v.os == .linux {
a << ' -ldl '
}
} }
// Find clang executable // Find clang executable
//fast_clang := '/usr/local/Cellar/llvm/8.0.0/bin/clang' //fast_clang := '/usr/local/Cellar/llvm/8.0.0/bin/clang'