freebsd: fix compilation

pull/3135/head
Delyan Angelov 2019-12-18 12:21:21 +02:00 committed by Alexander Medvednikov
parent 67bdc2c7a9
commit 4b7aa4ec09
2 changed files with 7 additions and 0 deletions

View File

@ -289,6 +289,10 @@ fn (v mut V) cc() {
if v.os == .linux {
a << ' -ldl '
}
if v.os == .freebsd {
// FreeBSD: backtrace needs execinfo library while linking
a << ' -lexecinfo '
}
}
if !v.pref.is_bare && v.os == .js && os.user_os() == 'linux' {

View File

@ -1039,6 +1039,9 @@ pub fn tmpdir() string {
$if linux {
if path == '' { path = '/tmp' }
}
$if freebsd {
if path == '' { path = '/tmp' }
}
$if macos {
/*
if path == '' {