From 3ef39d3cb6e480aafefef083fa656cb592d56e55 Mon Sep 17 00:00:00 2001 From: Sébastien Marie Date: Sun, 26 Nov 2017 10:08:25 +0100 Subject: make OpenBSD to use libc++ instead of (e)stdc++ --- src/librustc_llvm/build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/librustc_llvm') diff --git a/src/librustc_llvm/build.rs b/src/librustc_llvm/build.rs index 75efe135f65..141a9a8d704 100644 --- a/src/librustc_llvm/build.rs +++ b/src/librustc_llvm/build.rs @@ -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" -- cgit 1.4.1-3-g733a5