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