summaryrefslogtreecommitdiff
path: root/dev-lang/zig/files/zig-9999-stage2-fix.patch
blob: a2fe945c4a3910535513c70acd7e2d858a2e71d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/build.zig b/build.zig
index c8e757dc4..b698b5680 100644
--- a/build.zig
+++ b/build.zig
@@ -577,6 +577,7 @@ fn addCmakeCfgOptionsToExe(
                 else => |e| return e,
             };
             exe.linkSystemLibrary("unwind");
+            exe.linkSystemLibrary("c_nonshared");
         } else if (exe.target.isFreeBSD()) {
             try addCxxKnownPath(b, cfg, exe, b.fmt("libc++.{s}", .{lib_suffix}), null, need_cpp_includes);
             exe.linkSystemLibrary("pthread");