This commit is contained in:
milisbir 2018-08-21 23:30:02 +03:00
parent a3cdbd90d1
commit 1a987c939d
2 changed files with 1 additions and 33 deletions

View File

@ -1,32 +0,0 @@
From 5dbc650a60ddb230f59e5a18ffd298b033566945 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Johannes=20L=C3=B6thberg?= <johannes@kyriasis.com>
Date: Thu, 20 Jul 2017 23:07:01 +0200
Subject: [PATCH] librustc_llvm/build: Force link against libffi
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
`llvm-config --libs` doesn't output libffi in many cases. Fixing it
turned out to take quite a bit of effort, so force libffi linking in
here for now.
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
---
src/librustc_llvm/build.rs | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/librustc_llvm/build.rs b/src/librustc_llvm/build.rs
index 3f0f536960..7dc0c40c9d 100644
--- a/src/librustc_llvm/build.rs
+++ b/src/librustc_llvm/build.rs
@@ -220,6 +220,7 @@ fn main() {
};
println!("cargo:rustc-link-lib={}={}", kind, name);
}
+ println!("cargo:rustc-link-lib=dylib=ffi");
// LLVM ldflags
//
--
2.13.3

View File

@ -1,7 +1,7 @@
# Tanım: Mozilla tarafından güvenli, eşzamanlı, pratik bir dil. # Tanım: Mozilla tarafından güvenli, eşzamanlı, pratik bir dil.
# URL: http://www.rust-lang.org/ # URL: http://www.rust-lang.org/
# Paketçi: milisarge # Paketçi: milisarge
# Gerekler: libffi python jemalloc cmake ccache ninja # Gerekler: libffi python jemalloc cmake ccache ninja libunwind
# Grup: geliştirme # Grup: geliştirme
isim=rust isim=rust