Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Mar 2020 22:32:21 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r528606 - head/lang/rust/files/powerpc64-elfv2
Message-ID:  <202003172232.02HMWLWW091909@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Tue Mar 17 22:32:20 2020
New Revision: 528606
URL: https://svnweb.freebsd.org/changeset/ports/528606

Log:
  lang/rust-bootstrap: Unbreak powerpc64_elfv2 flavor after r528599
  
  error: could not find native static library `stdc++`, perhaps an -L flag is missing?
  
  error: aborting due to previous error
  
  error: could not compile `rustc_llvm`.
  
  PR:		244813

Modified:
  head/lang/rust/files/powerpc64-elfv2/patch-src_librustc__llvm_build.rs

Modified: head/lang/rust/files/powerpc64-elfv2/patch-src_librustc__llvm_build.rs
==============================================================================
--- head/lang/rust/files/powerpc64-elfv2/patch-src_librustc__llvm_build.rs	Tue Mar 17 22:19:14 2020	(r528605)
+++ head/lang/rust/files/powerpc64-elfv2/patch-src_librustc__llvm_build.rs	Tue Mar 17 22:32:20 2020	(r528606)
@@ -1,16 +1,12 @@
---- src/librustc_llvm/build.rs.orig	2019-12-16 15:38:05 UTC
+--- src/librustc_llvm/build.rs.orig	2020-03-09 22:11:17 UTC
 +++ src/librustc_llvm/build.rs
-@@ -273,7 +273,14 @@ fn main() {
+@@ -264,7 +264,10 @@ fn main() {
      };
  
      // C++ runtime library
 -    if !target.contains("msvc") {
-+    if target == "powerpc64-unknown-freebsd" {
-+        if is_crossed {
-+            println!("cargo:rustc-link-search=native=%WRKDIR%/usr/local/lib/%CC%");
-+        } else {
-+            println!("cargo:rustc-link-search=native=/usr/local/lib/%CC%");
-+        }
++    if target == "powerpc64-unknown-freebsd" && !is_crossed {
++        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 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003172232.02HMWLWW091909>