aboutsummaryrefslogtreecommitdiff
path: root/src/link.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-03-17 14:12:55 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-03-17 14:14:05 -0400
commit6acabd6b577ac63274b31bd1b2ae22cc75ab2c7a (patch)
treee377c017a4256aba2b29b294171d1d6c2e684adc /src/link.cpp
parentc8453454e16ce6188fb80f2fed8032a16f576823 (diff)
downloadzig-6acabd6b577ac63274b31bd1b2ae22cc75ab2c7a.tar.gz
zig-6acabd6b577ac63274b31bd1b2ae22cc75ab2c7a.zip
when linking msvcrt, also link ntdll.lib
See #2073
Diffstat (limited to 'src/link.cpp')
-rw-r--r--src/link.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/link.cpp b/src/link.cpp
index 32b83854b3..2e7744b6cc 100644
--- a/src/link.cpp
+++ b/src/link.cpp
@@ -1157,8 +1157,9 @@ static void add_nt_link_args(LinkJob *lj, bool is_library) {
//https://msdn.microsoft.com/en-us/library/bb531344.aspx
lj->args.append("legacy_stdio_definitions.lib");
- // msvcrt depends on kernel32
+ // msvcrt depends on kernel32 and ntdll
lj->args.append("kernel32.lib");
+ lj->args.append("ntdll.lib");
} else {
lj->args.append("/NODEFAULTLIB");
if (!is_library) {