c linker: pass -Xlinker -z -Xlinker muldefs only on Linux with -cache

pull/4349/head
Delyan Angelov 2020-04-11 15:24:00 +03:00
parent c1aba95d7d
commit 30714d16d9
1 changed files with 3 additions and 1 deletions
vlib/v/builder

View File

@ -317,9 +317,11 @@ fn (v mut Builder) cc() {
}
}
if !is_cc_tcc {
$if linux {
a << '-Xlinker -z -Xlinker muldefs'
}
}
}
// Without these libs compilation will fail on Linux
// || os.user_os() == 'linux'