blob: db32de43d8c5c65dfd95189a3222cdee30268e11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- src/librustc_llvm/build.rs.orig 2019-11-04 15:45:21 UTC
+++ src/librustc_llvm/build.rs
@@ -273,7 +273,10 @@ fn main() {
};
// C++ runtime library
- if !target.contains("msvc") {
+ if target == "powerpc64-unknown-freebsd" {
+ println!("cargo:rustc-link-search=native=/usr/local/lib/%CC%");
+ println!("cargo:rustc-link-lib=static=stdc++");
+ } else if !target.contains("msvc") {
if let Some(s) = llvm_static_stdcpp {
assert!(!cxxflags.contains("stdlib=libc++"));
let path = PathBuf::from(s);
|