Skip to content

Commit

Permalink
zls: link against system libc
Browse files Browse the repository at this point in the history
  • Loading branch information
tranzystorekk committed Jul 23, 2024
1 parent ee0bcee commit 87e5470
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions srcpkgs/zls/patches/link-libc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/build.zig b/build.zig
index 07c35fd..13b6f69 100644
--- a/build.zig
+++ b/build.zig
@@ -174,8 +174,10 @@ pub fn build(b: *Build) !void {
.pic = pie,
.use_llvm = use_llvm,
.use_lld = use_llvm,
+ .linkage = std.builtin.LinkMode.dynamic,
});
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);
2 changes: 1 addition & 1 deletion srcpkgs/zls/template
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 87e5470

Please sign in to comment.