make OpenBSD to use libc++ instead of (e)stdc++
This commit is contained in:
parent
2f84fb5cc1
commit
3ef39d3cb6
4 changed files with 5 additions and 4 deletions
|
|
@ -252,8 +252,8 @@ fn main() {
|
|||
let llvm_static_stdcpp = env::var_os("LLVM_STATIC_STDCPP");
|
||||
|
||||
let stdcppname = if target.contains("openbsd") {
|
||||
// OpenBSD has a particular C++ runtime library name
|
||||
"estdc++"
|
||||
// llvm-config on OpenBSD doesn't mention stdlib=libc++
|
||||
"c++"
|
||||
} else if target.contains("netbsd") && llvm_static_stdcpp.is_some() {
|
||||
// NetBSD uses a separate library when relocation is required
|
||||
"stdc++_pic"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue