From 8181f0a1ddf68b76e7b5aec870b490a7cc17b759 Mon Sep 17 00:00:00 2001 From: Karl Seguin Date: Tue, 28 Apr 2026 22:48:33 +0800 Subject: [PATCH] try to fix build --- build.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.zig b/build.zig index e57315cb..9ef2f28d 100644 --- a/build.zig +++ b/build.zig @@ -344,6 +344,10 @@ fn linkCurl(b: *Build, mod: *Build.Module, is_tsan: bool) !void { const libidn2 = buildLibidn2(b, target, mod.optimize.?, is_tsan); curl.root_module.linkLibrary(libidn2); + // Also expose libidn2 to the consuming module so src/sys/idna.zig's + // @cImport of resolves. Without this, lightpanda_module only + // sees idn2.h transitively if a system libidn2 happens to be installed. + mod.linkLibrary(libidn2); switch (target.result.os.tag) { .macos => {