diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-10-17 20:27:32 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-10-17 20:35:44 -0700 |
| commit | 919dcc5104d08fdb0828b3ed33e747bd2afacfbc (patch) | |
| tree | a8286478becc85d9c4457ba876d85584cbb33fe3 /src | |
| parent | e821a57683e5cc69655e8aa2c2fa38b834b31c26 (diff) | |
| download | zig-919dcc5104d08fdb0828b3ed33e747bd2afacfbc.tar.gz zig-919dcc5104d08fdb0828b3ed33e747bd2afacfbc.zip | |
coff: link in CRT for DLLs that want -lc
see #5748
closes #5870
Diffstat (limited to 'src')
| -rw-r--r-- | src/link/Coff.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link/Coff.zig b/src/link/Coff.zig index 3eb4d32c95..5dc425cb17 100644 --- a/src/link/Coff.zig +++ b/src/link/Coff.zig @@ -811,7 +811,7 @@ fn linkWithLLD(self: *Coff, comp: *Compilation) !void { const is_lib = self.base.options.output_mode == .Lib; const is_dyn_lib = self.base.options.link_mode == .Dynamic and is_lib; const is_exe_or_dyn_lib = is_dyn_lib or self.base.options.output_mode == .Exe; - const link_in_crt = self.base.options.link_libc and self.base.options.output_mode == .Exe; + const link_in_crt = self.base.options.link_libc and is_exe_or_dyn_lib; const target = self.base.options.target; // See link/Elf.zig for comments on how this mechanism works. |
