Skip to content

Commit

Permalink
Drop advapi32 and shell32 from late_link_args.
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimcn committed Oct 23, 2015
1 parent d710f8b commit afc3046
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions src/librustc_back/target/windows_base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ pub fn opts() -> TargetOptions {
"-lmingw32".to_string(),
"-lgcc".to_string(), // alas, mingw* libraries above depend on libgcc
"-lmsvcrt".to_string(),
"-ladvapi32".to_string(),
"-lshell32".to_string(),
"-luser32".to_string(),
"-lkernel32".to_string(),
),
Expand Down
1 change: 1 addition & 0 deletions src/libstd/sys/windows/c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ pub type PVECTORED_EXCEPTION_HANDLER = extern "system"

#[link(name = "ws2_32")]
#[link(name = "userenv")]
#[link(name = "shell32")]
extern "system" {
pub fn WSAStartup(wVersionRequested: libc::WORD,
lpWSAData: LPWSADATA) -> libc::c_int;
Expand Down

0 comments on commit afc3046

Please sign in to comment.