From 3be10cb389d7a3b96abee4f121d3f493a6d51175 Mon Sep 17 00:00:00 2001 From: Ruben Maher Date: Sun, 24 Apr 2022 07:34:14 +0900 Subject: [PATCH] fix: make build work on macos Otherwise the build will fail with errors like `ld: symbol(s) not found for architecture x86_64` --- zig.go | 1 + 1 file changed, 1 insertion(+) diff --git a/zig.go b/zig.go index 3c8905c..bdc773a 100644 --- a/zig.go +++ b/zig.go @@ -11,6 +11,7 @@ import ( /* #cgo linux LDFLAGS: -lz +#cgo darwin LDFLAGS: -lz #cgo windows LDFLAGS: -lz -lws2_32 #include "zig.h" */