From e2854b38932e9cc3aa5ac09b55b59845919860c4 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 11 May 2015 14:47:59 -0700 Subject: libc: Add necessary libraries for MSVC These libs seem to be required by the standard library at least to link successfully! --- src/liblibc/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/liblibc') diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs index 55934da00a3..42e9bd9c9a0 100644 --- a/src/liblibc/lib.rs +++ b/src/liblibc/lib.rs @@ -150,6 +150,12 @@ extern {} #[link(name = "c", kind = "static")] extern {} +#[cfg(all(windows, target_env = "msvc"))] +#[link(name = "kernel32")] +#[link(name = "shell32")] +#[link(name = "msvcrt")] +extern {} + // libnacl provides functions that require a trip through the IRT to work. // ie: _exit, mmap, nanosleep, etc. Anything that would otherwise require a trip // to the kernel. -- cgit 1.4.1-3-g733a5