summaryrefslogtreecommitdiff
path: root/lang/rust/files/powerpc64-elfv1/patch-src_librustc__llvm_build.rs
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2019-11-07 18:07:20 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2019-11-07 18:07:20 +0000
commit2fe55654450880a88824c4b2e80a8ac8a01328ba (patch)
tree55fb50daedc99c7102724bdfdf388473217d78b0 /lang/rust/files/powerpc64-elfv1/patch-src_librustc__llvm_build.rs
parentSet USES=localbase instead of CPPFLAGS and LIBS (diff)
lang/rust: Update to 1.39.0
- Force rebuild all consumers to catch regressions early - Partially apply D20792 in preparation for PPC_ABI support - Add LibreSSL 3.0.x support [1] Thanks to Mikaƫl Urankar for providing updated bootstraps for aarch64, armv6, armv7, powerpc64. Changes: https://blog.rust-lang.org/2019/11/07/Rust-1.39.0.html PR: 241411 [1] Tested by: mikael.urankar@gmail.com, tobik With hat: rust Differential Revision: https://reviews.freebsd.org/D22240
Diffstat (limited to 'lang/rust/files/powerpc64-elfv1/patch-src_librustc__llvm_build.rs')
-rw-r--r--lang/rust/files/powerpc64-elfv1/patch-src_librustc__llvm_build.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/rust/files/powerpc64-elfv1/patch-src_librustc__llvm_build.rs b/lang/rust/files/powerpc64-elfv1/patch-src_librustc__llvm_build.rs
new file mode 100644
index 000000000000..db32de43d8c5
--- /dev/null
+++ b/lang/rust/files/powerpc64-elfv1/patch-src_librustc__llvm_build.rs
@@ -0,0 +1,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);