From 207941559ddce18b7b0cfeb09b7fab673233c4da Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Sun, 20 May 2018 10:23:04 +0200 Subject: community/rust: upgrade to 1.26.0 Also switch to LLVM 5. Upstream switched right to LLVM 6, but we don't have it yet. --- community/rust/alpine-change-rpath-to-rustlib.patch | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'community/rust/alpine-change-rpath-to-rustlib.patch') diff --git a/community/rust/alpine-change-rpath-to-rustlib.patch b/community/rust/alpine-change-rpath-to-rustlib.patch index bd65efd7d9..609fdde358 100644 --- a/community/rust/alpine-change-rpath-to-rustlib.patch +++ b/community/rust/alpine-change-rpath-to-rustlib.patch @@ -1,5 +1,6 @@ From: Jakub Jirutka Date: Sat, 08 Aug 2016 19:56:00 +0200 +Last-Updated: Sun, 20 May 2018 00:09:00 +0200 Subject: [PATCH] Change rpath for rustc/rustdoc to rustlib/$TARGET/lib Rust installs two identical sets of *.so libraries into /usr/lib and @@ -23,11 +24,13 @@ Related upstream issues: --- a/src/bootstrap/bin/rustc.rs +++ b/src/bootstrap/bin/rustc.rs -@@ -189,7 +189,7 @@ +@@ -224,9 +224,9 @@ + // so. Note that this is definitely a hack, and we should likely + // flesh out rpath support more fully in the future. cmd.arg("-Z").arg("osx-rpath-install-name"); - Some("-Wl,-rpath,@loader_path/../lib") + Some("-Wl,-rpath,@loader_path/../lib".to_string()) - } else if !target.contains("windows") { + } else if !target.contains("windows") && !target.contains("wasm32") { - Some("-Wl,-rpath,$ORIGIN/../lib") + Some(format!("-Wl,-rpath,$ORIGIN/../lib/rustlib/{}/lib", target)) } else { -- cgit v1.2.3