summaryrefslogtreecommitdiff
path: root/user/rust/0004-Require-static-native-libraries-when-linking-static-.patch
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2019-10-07 00:01:16 +0000
committerSamuel Holland <samuel@sholland.org>2019-10-14 22:36:45 -0500
commit3febb3d8330926d97e865c3aeaddff95acef8b83 (patch)
tree08b9bb19c509e2093a12b7bd53a2ac51769134f6 /user/rust/0004-Require-static-native-libraries-when-linking-static-.patch
parentb5b897e47ab11998c46db7f9ba96410a187c0634 (diff)
downloadpackages-3febb3d8330926d97e865c3aeaddff95acef8b83.tar.gz
packages-3febb3d8330926d97e865c3aeaddff95acef8b83.tar.bz2
packages-3febb3d8330926d97e865c3aeaddff95acef8b83.tar.xz
packages-3febb3d8330926d97e865c3aeaddff95acef8b83.zip
user/rust: Bump to 1.38.0
Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'user/rust/0004-Require-static-native-libraries-when-linking-static-.patch')
-rw-r--r--user/rust/0004-Require-static-native-libraries-when-linking-static-.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/user/rust/0004-Require-static-native-libraries-when-linking-static-.patch b/user/rust/0004-Require-static-native-libraries-when-linking-static-.patch
index 854cd61e6..7b737b792 100644
--- a/user/rust/0004-Require-static-native-libraries-when-linking-static-.patch
+++ b/user/rust/0004-Require-static-native-libraries-when-linking-static-.patch
@@ -1,7 +1,7 @@
-From 10bd267ac2621267e1f537a5a7df34cb87354cd3 Mon Sep 17 00:00:00 2001
+From 8f2821b37da4fe2710e1bf7944765a5c2cf8d98c Mon Sep 17 00:00:00 2001
From: Samuel Holland <samuel@sholland.org>
Date: Fri, 8 Sep 2017 00:05:18 -0500
-Subject: [PATCH 04/16] Require static native libraries when linking static
+Subject: [PATCH 04/18] Require static native libraries when linking static
executables
On ELF targets like Linux, gcc/ld will create a dynamically-linked
@@ -16,10 +16,10 @@ Fixes #54243
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/src/librustc_codegen_ssa/back/link.rs b/src/librustc_codegen_ssa/back/link.rs
-index e3d297e7862..974e8c0239b 100644
+index 8fb0828285c..2d8a0b86076 100644
--- a/src/librustc_codegen_ssa/back/link.rs
+++ b/src/librustc_codegen_ssa/back/link.rs
-@@ -1571,9 +1571,7 @@ fn add_upstream_rust_crates<'a, B: ArchiveBuilder<'a>>(cmd: &mut dyn Linker,
+@@ -1567,9 +1567,7 @@ fn add_upstream_rust_crates<'a, B: ArchiveBuilder<'a>>(cmd: &mut dyn Linker,
}
}
@@ -30,7 +30,7 @@ index e3d297e7862..974e8c0239b 100644
//
// 1. The upstream crate is an rlib. In this case we *must* link in the
// native dependency because the rlib is just an archive.
-@@ -1616,7 +1614,19 @@ pub fn add_upstream_native_libraries(cmd: &mut dyn Linker,
+@@ -1612,7 +1610,19 @@ pub fn add_upstream_native_libraries(cmd: &mut dyn Linker,
continue
}
match lib.kind {