aboutsummaryrefslogtreecommitdiffstats
path: root/community/rust/llvm-with-ffi.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-05-01 00:43:19 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-05-01 00:43:19 +0200
commit41489596392977197d046ca034685664a3f4afa4 (patch)
treeef791ac83fd7635db59db40e12beb20a66ada3bd /community/rust/llvm-with-ffi.patch
parentabfa07f26ff2837922903586b15e137b67b43219 (diff)
downloadaports-41489596392977197d046ca034685664a3f4afa4.tar.bz2
aports-41489596392977197d046ca034685664a3f4afa4.tar.xz
community/rust: move from testing
Diffstat (limited to 'community/rust/llvm-with-ffi.patch')
-rw-r--r--community/rust/llvm-with-ffi.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/community/rust/llvm-with-ffi.patch b/community/rust/llvm-with-ffi.patch
new file mode 100644
index 0000000000..42b0895e75
--- /dev/null
+++ b/community/rust/llvm-with-ffi.patch
@@ -0,0 +1,16 @@
+From: Jakub Jirutka <jakub@jirutka.cz>
+Date: Thu, 04 Aug 2016 17:53:00 +0200
+Subject: [PATCH] Workaround for external LLVM built with LLVM_ENABLE_FFI
+
+Workaround for problem with LLVM_ENABLE_FFI described in
+https://github.com/rust-lang/rust/issues/34486.
+
+--- a/src/librustc_llvm/lib.rs
++++ b/src/librustc_llvm/lib.rs
+@@ -432,3 +432,6 @@
+ mod llvmdeps {
+ include! { env!("CFG_LLVM_LINKAGE_FILE") }
+ }
++
++#[link(name = "ffi")]
++extern {}