authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-10-17 20:27:32-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-10-17 20:35:44-07:00
log919dcc5104d08fdb0828b3ed33e747bd2afacfbc
treea8286478becc85d9c4457ba876d85584cbb33fe3
parente821a57683e5cc69655e8aa2c2fa38b834b31c26

coff: link in CRT for DLLs that want -lc

see #5748 closes #5870

1 files changed, 1 insertions(+), 1 deletions(-)

src/link/Coff.zig+1-1
......@@ -811,7 +811,7 @@ fn linkWithLLD(self: *Coff, comp: *Compilation) !void {
811811 const is_lib = self.base.options.output_mode == .Lib;
812812 const is_dyn_lib = self.base.options.link_mode == .Dynamic and is_lib;
813813 const is_exe_or_dyn_lib = is_dyn_lib or self.base.options.output_mode == .Exe;
814 const link_in_crt = self.base.options.link_libc and self.base.options.output_mode == .Exe;
814 const link_in_crt = self.base.options.link_libc and is_exe_or_dyn_lib;
815815 const target = self.base.options.target;
816816
817817 // See link/Elf.zig for comments on how this mechanism works.