libc: Add necessary libraries for MSVC

These libs seem to be required by the standard library at least to link
successfully!
This commit is contained in:
Alex Crichton 2015-05-11 14:47:59 -07:00
parent d97b4af153
commit e2854b3893

View File

@ -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.