From 3970d2457a74b55a820b12481957dda2548a6690 Mon Sep 17 00:00:00 2001 From: tranzystorekk Date: Tue, 23 Jul 2024 00:17:32 +0200 Subject: [PATCH] zls: link against system libc --- srcpkgs/zls/patches/link-libc.patch | 12 ++++++++++++ srcpkgs/zls/template | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/zls/patches/link-libc.patch diff --git a/srcpkgs/zls/patches/link-libc.patch b/srcpkgs/zls/patches/link-libc.patch new file mode 100644 index 00000000000000..d305ddd4ef6f24 --- /dev/null +++ b/srcpkgs/zls/patches/link-libc.patch @@ -0,0 +1,12 @@ +diff --git a/build.zig b/build.zig +index 07c35fd..3e875d3 100644 +--- a/build.zig ++++ b/build.zig +@@ -176,6 +176,7 @@ pub fn build(b: *Build) !void { + .use_lld = use_llvm, + }); + exe.pie = pie; ++ exe.linkLibC(); + exe.root_module.addImport("exe_options", exe_options_module); + exe.root_module.addImport("tracy", tracy_module); + exe.root_module.addImport("diffz", diffz_module); diff --git a/srcpkgs/zls/template b/srcpkgs/zls/template index 887475ed8d2eab..93a2aa83c56d80 100644 --- a/srcpkgs/zls/template +++ b/srcpkgs/zls/template @@ -1,7 +1,7 @@ # Template file for 'zls' pkgname=zls version=0.13.0 -revision=1 +revision=2 build_style=zig-build configure_args="-Dpie" short_desc="Zig language server"