rust: link against zlib and ncurses explicitly

else, librustc_codegen_llvm-llvm.so doesn't get linked against them
when cross compiling

fixes https://github.com/void-linux/void-packages/issues/4379

[ci skip]
This commit is contained in:
Johannes 2018-11-23 19:19:08 +01:00 committed by Johannes
parent 0168ecb37f
commit 844efd76bf
2 changed files with 13 additions and 9 deletions

View File

@ -0,0 +1,13 @@
--- rustc-1.30.0-src/src/librustc_llvm/lib.rs.orig
+++ rustc-1.30.0-src/src/librustc_llvm/lib.rs
@@ -121,3 +121,10 @@
LLVMInitializeWebAssemblyTargetMC,
LLVMInitializeWebAssemblyAsmPrinter);
}
+
+#[link(name = "ffi")]
+extern {}
+#[link(name = "z")]
+extern {}
+#[link(name = "ncursesw")]
+extern {}

View File

@ -1,9 +0,0 @@
--- rustc-1.21.0-src/src/librustc_llvm/lib.rs.orig
+++ rustc-1.21.0-src/src/librustc_llvm/lib.rs
@@ -425,3 +425,6 @@
}
}
}
+
+#[link(name = "ffi")]
+extern {}