]> git.lizzy.rs Git - rust.git/commitdiff
libc: Add necessary libraries for MSVC
authorAlex Crichton <alex@alexcrichton.com>
Mon, 11 May 2015 21:47:59 +0000 (14:47 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 19 May 2015 17:53:06 +0000 (10:53 -0700)
These libs seem to be required by the standard library at least to link
successfully!

src/liblibc/lib.rs

index 55934da00a37cde66ef6327a241b688ac9a6017d..42e9bd9c9a0d3b5ea5bb57f648c08725b8a0c019 100644 (file)
 #[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.