fix: use native build

This commit is contained in:
Lakhan Samani
2021-09-11 12:45:04 +05:30
parent 7ec91b5b5e
commit 7d71f66080
2 changed files with 37 additions and 11 deletions

View File

@@ -2,6 +2,6 @@ DEFAULT_VERSION=0.1.0-local
VERSION := $(or $(VERSION),$(DEFAULT_VERSION))
cmd:
cd server && go build -ldflags "-w -X main.Version=$(VERSION)" -o '../build/server'
cd server && CGO_ENABLED=1 GOOS=$(GOOS) CC=$(CC) go build -ldflags "-w -X main.Version=$(VERSION)" -o '../build/server'
clean:
rm -rf build