mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
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 <bratishkaerik@landless-city.net>
This commit is contained in:
parent
c9f3d39d3e
commit
f4e4694612
1 changed files with 1 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue