Skip to content

Commit bbd63f4

Browse files
chrislloydclaude
andcommitted
Fix Ubuntu CI segfault by adding explicit C runtime linking
Added linkLibC() calls to ensure proper C runtime linking for SQLite and libgit2 interop on Linux platforms. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 4bc5cda commit bbd63f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ fn build_git_remote_sqlite(b: *std.Build, steps: struct {
5858
// Add system library linkage
5959
exe.linkSystemLibrary("sqlite3");
6060
exe.linkSystemLibrary("git2");
61+
exe.linkLibC();
6162

6263
// This declares intent for the executable to be installed into the
6364
// standard location when the user invokes the "install" step (the default
@@ -106,6 +107,7 @@ fn build_test(b: *std.Build, steps: struct {
106107
});
107108
unit.linkSystemLibrary("sqlite3");
108109
unit.linkSystemLibrary("git2");
110+
unit.linkLibC();
109111

110112
const run_unit = b.addRunArtifact(unit);
111113
steps.test_unit.dependOn(&run_unit.step);

0 commit comments

Comments
 (0)