From 7f310205ae56802eb90e06ed50397ef5b170aa32 Mon Sep 17 00:00:00 2001 From: Ruslan Gainutdinov Date: Wed, 13 Nov 2019 15:02:24 +0200 Subject: [PATCH] Use default GOOS and allow to specify GOOS on cmd-line --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 23cd6c9..e83852b 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ get: build: @echo :: building go binary $(VERSION) - CGO_ENABLED=0 GOOS=linux go build \ + CGO_ENABLED=0 go build \ -ldflags "-X main.version=$(VERSION)" \ -gcflags "-trimpath $(GOPATH)/src"