Skip to content

Commit 86c33d1

Browse files
committed
Don't link against ntdll, advapi32, userenv libraries statically
1 parent 97f906b commit 86c33d1

File tree

1 file changed

+3
-3
lines changed
  • library/windows_targets/src

1 file changed

+3
-3
lines changed

library/windows_targets/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ pub macro link {
3434
}
3535

3636
#[cfg(not(feature = "windows_raw_dylib"))]
37-
#[link(name = "advapi32")]
38-
#[link(name = "ntdll")]
39-
#[link(name = "userenv")]
37+
#[cfg_attr(not(target_vendor = "rust9x"), link(name = "advapi32"))]
38+
#[cfg_attr(not(target_vendor = "rust9x"), link(name = "ntdll"))]
39+
#[cfg_attr(not(target_vendor = "rust9x"), link(name = "userenv"))]
4040
#[link(name = "ws2_32")]
4141
#[link(name = "dbghelp")] // required for backtrace-rs symbolization
4242
extern "C" {}

0 commit comments

Comments
 (0)