1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/lang/rust/files/patch-src_librustc__llvm_build.rs
Tobias Kortkamp ea2b4d789b lang/rust: Add aarch64, armv{6,7}, and powerpc64 bootstraps
PR:		216143, 228892
Submitted by:	Mikaël Urankar <mikael.urankar@gmail.com>
Differential Revision:	https://reviews.freebsd.org/D18367
2019-02-18 15:30:39 +00:00

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);