diff --git a/srcpkgs/rust/patches/llvm-with-dependencies.patch b/srcpkgs/rust/patches/llvm-with-dependencies.patch new file mode 100644 index 00000000000..01ee0ac0dac --- /dev/null +++ b/srcpkgs/rust/patches/llvm-with-dependencies.patch @@ -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 {} diff --git a/srcpkgs/rust/patches/llvm-with-ffi.patch b/srcpkgs/rust/patches/llvm-with-ffi.patch deleted file mode 100644 index f357317d9be..00000000000 --- a/srcpkgs/rust/patches/llvm-with-ffi.patch +++ /dev/null @@ -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 {}