| ... | ... | @@ -1157,8 +1157,9 @@ static void add_nt_link_args(LinkJob *lj, bool is_library) { |
| 1157 | 1157 | //https://msdn.microsoft.com/en-us/library/bb531344.aspx |
| 1158 | 1158 | lj->args.append("legacy_stdio_definitions.lib"); |
| 1159 | 1159 | |
| 1160 | | // msvcrt depends on kernel32 |
| 1160 | // msvcrt depends on kernel32 and ntdll |
| 1161 | 1161 | lj->args.append("kernel32.lib"); |
| 1162 | lj->args.append("ntdll.lib"); |
| 1162 | 1163 | } else { |
| 1163 | 1164 | lj->args.append("/NODEFAULTLIB"); |
| 1164 | 1165 | if (!is_library) { |