openbsd-ports/lang/rust/patches/patch-src_libunwind_build_rs
landry 97894fe4c9 Update to rust 1.22.1.
full changelog at https://blog.rust-lang.org/2017/11/22/Rust-1.22.html

port changes:
- switch to clang and libc++ (instead of egcc and estdc++)
- use devel/llvm instead of the embedded llvm version
- make i386 produce code for 'pentiumpro' instead of 'pentium4' so that
ppl can use ripgrep on pentium II's (yay!)
- use a hack (codegen-units=16) to fix memory pressure issues on i386.
  Might not work forever.....

tested on i386 & amd64, went into an i386 bulk.
all the hard work from semarie@
2017-12-04 17:31:49 +00:00

15 lines
604 B
Plaintext

$OpenBSD: patch-src_libunwind_build_rs,v 1.1 2017/12/04 17:31:49 landry Exp $
Use c++ for OpenBSD instead of stdc++
Index: src/libunwind/build.rs
--- src/libunwind/build.rs.orig
+++ src/libunwind/build.rs
@@ -27,7 +27,7 @@ fn main() {
} else if target.contains("netbsd") {
println!("cargo:rustc-link-lib=gcc_s");
} else if target.contains("openbsd") {
- println!("cargo:rustc-link-lib=gcc");
+ println!("cargo:rustc-link-lib=c++abi");
} else if target.contains("solaris") {
println!("cargo:rustc-link-lib=gcc_s");
} else if target.contains("bitrig") {