Skip to content

Lightpanda: the headless browser designed for AI and automation

`build.zig`: fix linking error

Halil Durak0fd9ebda5725
diff --git a/build.zig b/build.zig
index 7bf3e51d9..64b7f9166 100644
--- a/build.zig
+++ b/build.zig
@@ -527,7 +527,7 @@ fn linkCurl(b: *Build, mod: *Build.Module, deps: Deps, is_tsan: bool, section: b
mod.addImport("curl", translator.mod);
const zlib = buildZlib(b, deps.target, deps.optimize, is_tsan, section);
- // Link directly since curl is not the only dependent of it.
+ curl.root_module.linkLibrary(zlib);
mod.linkLibrary(zlib);
const brotli = buildBrotli(b, deps.target, deps.optimize, is_tsan, section);