From 73c2e91a0dee356048898d5b72e01969af9097e3 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Tue, 25 Oct 2022 23:55:58 +0200 Subject: [PATCH] build: include -lzstd in the linker line when building Zig --- build.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/build.zig b/build.zig index 30508b88e310c91d1eacf56dc5e0536133180f8c..538549ea919695e963d622240613c59ccd7a4635 100644 --- a/build.zig +++ b/build.zig @@ -635,6 +635,7 @@ fn addStaticLlvmOptionsToExe(exe: *std.build.LibExeObjStep) !void { } exe.linkSystemLibrary("z"); + exe.linkSystemLibrary("zstd"); // This means we rely on clang-or-zig-built LLVM, Clang, LLD libraries. exe.linkSystemLibrary("c++"); -- 2.54.0