11 lines
349 B
Diff
11 lines
349 B
Diff
--- rustc-1.12.0/src/librustc_llvm/build.rs.orig
|
|
+++ rustc-1.12.0/src/librustc_llvm/build.rs
|
|
@@ -128,6 +128,7 @@
|
|
// of llvm-config, not the target that we're attempting to link.
|
|
let mut cmd = Command::new(&llvm_config);
|
|
cmd.arg("--libs");
|
|
+ cmd.arg("--link-static");
|
|
if !is_crossed {
|
|
cmd.arg("--system-libs");
|
|
}
|