~gpanders/public-inbox

zet: Link to libc v1 APPLIED

Dani Pozo: 1
 Link to libc

 1 files changed, 1 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~gpanders/public-inbox/patches/11427/mbox | git am -3
Learn more about email & git

[PATCH zet] Link to libc Export this patch

From: Dani Pozo <danipozo@correo.ugr.es>

Apparently, Zig fails to detect the dependency on libc
if not told explicitly.

---
 build.zig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/build.zig b/build.zig
index 330c68f..1e6c17f 100644
--- a/build.zig
@@ -16,6 +16,7 @@ pub fn build(b: *Builder) void {
    const exe = b.addExecutable("zet", "src/main.zig");
    exe.setTarget(target);
    exe.setBuildMode(mode);
    exe.linkSystemLibrary("c");
    exe.strip = mode == Mode.ReleaseSmall;
    exe.install();

-- 
2.27.0
Thanks!