Skip to content

Commit afc3046

Browse files
committed
Drop advapi32 and shell32 from late_link_args.
1 parent d710f8b commit afc3046

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/librustc_back/target/windows_base.rs

-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ pub fn opts() -> TargetOptions {
7777
"-lmingw32".to_string(),
7878
"-lgcc".to_string(), // alas, mingw* libraries above depend on libgcc
7979
"-lmsvcrt".to_string(),
80-
"-ladvapi32".to_string(),
81-
"-lshell32".to_string(),
8280
"-luser32".to_string(),
8381
"-lkernel32".to_string(),
8482
),

src/libstd/sys/windows/c.rs

+1
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ pub type PVECTORED_EXCEPTION_HANDLER = extern "system"
354354

355355
#[link(name = "ws2_32")]
356356
#[link(name = "userenv")]
357+
#[link(name = "shell32")]
357358
extern "system" {
358359
pub fn WSAStartup(wVersionRequested: libc::WORD,
359360
lpWSAData: LPWSADATA) -> libc::c_int;

0 commit comments

Comments
 (0)