From f4e469461235253877759955038a3140db92be24 Mon Sep 17 00:00:00 2001 From: Eric Joldasov Date: Thu, 6 Mar 2025 01:14:14 +0500 Subject: [PATCH] build.zig: link `zstd` instead of `libzstd` Seems like it was used here because `pkg-config` does not work with `zstd` passed but works with `libzstd`. In 0.14.0 there was a change with allows pkg-config to be used here: it now tries to use `lib+libname.pc` if `libname.pc` was not found: https://github.com/ziglang/zig/pull/22069 This change allows Zig to use plain file search if pkg-config was not found (it would now search `libzstd.so` instead of `liblibzstd.so`). Signed-off-by: Eric Joldasov --- build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 7f441c3..6ad4531 100644 --- a/build.zig +++ b/build.zig @@ -18,7 +18,7 @@ pub fn build(b: *std.Build) void { .link_libc = true, }); main_mod.linkSystemLibrary("ncursesw", .{}); - main_mod.linkSystemLibrary("libzstd", .{}); + main_mod.linkSystemLibrary("zstd", .{}); const exe = b.addExecutable(.{ .name = "ncdu",