From 0aa613d9bfbc3904cbd62892bb4119f9104e7b67 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 23 May 2026 20:03:32 -0700 Subject: [PATCH] Maker.Step.Run: fix passing -L to qemu --- lib/compiler/Maker/Step/Run.zig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/compiler/Maker/Step/Run.zig b/lib/compiler/Maker/Step/Run.zig index f5437180a9..c76d6626ee 100644 --- a/lib/compiler/Maker/Step/Run.zig +++ b/lib/compiler/Maker/Step/Run.zig @@ -1811,7 +1811,11 @@ fn runCommand( }; const need_cross_libc = link_libc and root_target.os.tag == .linux and - producer.flags2.linkage == .dynamic; + switch (producer.flags2.linkage) { + .static => false, + .dynamic => true, + .default => root_target.isGnuLibC(), + }; switch (std.zig.system.getExternalExecutor(io, &root_target, .{ .host_cpu_arch = host.cpu.arch, .host_os_tag = host.os.tag,