Skip to content

Commit

Permalink
libc: Add necessary libraries for MSVC
Browse files Browse the repository at this point in the history
These libs seem to be required by the standard library at least to link
successfully!
  • Loading branch information
alexcrichton committed May 19, 2015
1 parent d97b4af commit e2854b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/liblibc/lib.rs
Expand Up @@ -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.
Expand Down

0 comments on commit e2854b3

Please sign in to comment.