mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
ea2b4d789b
PR: 216143, 228892 Submitted by: Mikaël Urankar <mikael.urankar@gmail.com> Differential Revision: https://reviews.freebsd.org/D18367
15 lines
565 B
Rust
15 lines
565 B
Rust
--- src/librustc_llvm/build.rs.orig 2019-01-16 09:30:27 UTC
|
|
+++ src/librustc_llvm/build.rs
|
|
@@ -256,7 +256,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);
|