diff --git a/Makefile b/Makefile index e079c1d3f2c5f..f1ea3ea433925 100644 --- a/Makefile +++ b/Makefile @@ -45,8 +45,12 @@ else BUILDFLAGS ?= $(ADDFLAGS) -ldflags '-w -s' -trimpath endif -OS ?= $(shell go env GOOS) -ARCH ?= $(shell go env GOARCH) +GO_ENV_OS := $(shell go env GOOS) +OS ?= $(GO_ENV_OS) + +GO_ENV_ARCH := $(shell go env GOARCH) +ARCH ?= $(GO_ENV_ARCH) + FIPS ?= RELEASE = teleport-$(GITTAG)-$(OS)-$(ARCH)-bin