From a18046748b3fbffeec9cdc17f6072761a05543b4 Mon Sep 17 00:00:00 2001 From: Lakhan Samani Date: Wed, 9 Nov 2022 04:09:55 +0530 Subject: [PATCH] chore: add cgo param to gox --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 38e819f..37fa7ee 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ VERSION := $(or $(VERSION),$(DEFAULT_VERSION)) cmd: cd server && go build -ldflags "-w -X main.VERSION=$(VERSION)" -o '../build/server' build: - cd server && gox \ + cd server && gox -cgo \ -osarch="linux/amd64 linux/arm64 darwin/amd64 windows/386 windows/amd64" \ -ldflags "-w -X main.VERSION=$(VERSION)" \ -output="../build/{{.OS}}/{{.Arch}}/server" \