| ... | @@ -1811,7 +1811,11 @@ fn runCommand( | ... | @@ -1811,7 +1811,11 @@ fn runCommand( |
| 1811 | }; | 1811 | }; |
| 1812 | | 1812 | |
| 1813 | const need_cross_libc = link_libc and root_target.os.tag == .linux and | 1813 | const need_cross_libc = link_libc and root_target.os.tag == .linux and |
| 1814 | producer.flags2.linkage == .dynamic; | 1814 | switch (producer.flags2.linkage) { |
| | 1815 | .static => false, |
| | 1816 | .dynamic => true, |
| | 1817 | .default => root_target.isGnuLibC(), |
| | 1818 | }; |
| 1815 | switch (std.zig.system.getExternalExecutor(io, &root_target, .{ | 1819 | switch (std.zig.system.getExternalExecutor(io, &root_target, .{ |
| 1816 | .host_cpu_arch = host.cpu.arch, | 1820 | .host_cpu_arch = host.cpu.arch, |
| 1817 | .host_os_tag = host.os.tag, | 1821 | .host_os_tag = host.os.tag, |