summaryrefslogtreecommitdiff
path: root/user/rust/0015-test-linkage-visibility-Ensure-symbols-are-visible-t.patch
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2019-02-19 23:12:03 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2019-02-19 23:12:03 +0000
commitc30463643e0f18200197fa7fc700805eac4d020c (patch)
tree599f32d5195512f7b700bb1f68abdbda7ee45281 /user/rust/0015-test-linkage-visibility-Ensure-symbols-are-visible-t.patch
parent3e7e0ccf80173731eef6d51f8a261b6058bfad72 (diff)
parent3ad04696702c67ecbb84ee44d20b2489d77d841f (diff)
downloadpackages-c30463643e0f18200197fa7fc700805eac4d020c.tar.gz
packages-c30463643e0f18200197fa7fc700805eac4d020c.tar.bz2
packages-c30463643e0f18200197fa7fc700805eac4d020c.tar.xz
packages-c30463643e0f18200197fa7fc700805eac4d020c.zip
Merge branch 'rust' into 'master'
user/rust: Bump to 1.31.1 This needs updated binaries from https://portage.smaeul.xyz/distfiles/adelie/ See merge request !131
Diffstat (limited to 'user/rust/0015-test-linkage-visibility-Ensure-symbols-are-visible-t.patch')
-rw-r--r--user/rust/0015-test-linkage-visibility-Ensure-symbols-are-visible-t.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/user/rust/0015-test-linkage-visibility-Ensure-symbols-are-visible-t.patch b/user/rust/0015-test-linkage-visibility-Ensure-symbols-are-visible-t.patch
new file mode 100644
index 000000000..f4591af96
--- /dev/null
+++ b/user/rust/0015-test-linkage-visibility-Ensure-symbols-are-visible-t.patch
@@ -0,0 +1,30 @@
+From cc2e1f8ee1d28a772c0309b226e996359180124a Mon Sep 17 00:00:00 2001
+From: Samuel Holland <samuel@sholland.org>
+Date: Sun, 16 Sep 2018 16:35:41 +0000
+Subject: [PATCH 15/23] test/linkage-visibility: Ensure symbols are visible to
+ dlsym
+
+DynamicLibrary uses libc's dlsym() function internally to find symbols.
+Some implementations of dlsym(), like musl's, only look at dynamically-
+exported symbols, as found in shared libraries. To also export symbols
+from the main executable, pass --export-dynamic to the linker.
+---
+ src/test/run-pass-fulldeps/auxiliary/linkage-visibility.rs | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/test/run-pass-fulldeps/auxiliary/linkage-visibility.rs b/src/test/run-pass-fulldeps/auxiliary/linkage-visibility.rs
+index 4ea3d0d0d0..b958e1a1fc 100644
+--- a/src/test/run-pass-fulldeps/auxiliary/linkage-visibility.rs
++++ b/src/test/run-pass-fulldeps/auxiliary/linkage-visibility.rs
+@@ -8,6 +8,8 @@
+ // option. This file may not be copied, modified, or distributed
+ // except according to those terms.
+
++// compile-flags: -C link-arg=-Wl,--export-dynamic
++
+ #![feature(rustc_private)]
+
+ // We're testing linkage visibility; the compiler warns us, but we want to
+--
+2.19.2
+