From a6aeb87867acf6b6604ba1176d72ec138d05296a Mon Sep 17 00:00:00 2001 From: James Ranson Date: Thu, 23 Apr 2020 16:50:47 -0600 Subject: [PATCH] relocate ldflags to properly interpolate GOARCH --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ba289a8..bcc4df6 100644 --- a/Makefile +++ b/Makefile @@ -25,9 +25,9 @@ PROGVER := $(shell grep 'applicationVersion = ' $(MOCKSTER_MAIN)/main.go BUILD_TIME := $(shell date -u +%FT%T%z) GIT_LATEST_COMMIT_ID := $(shell git rev-parse HEAD) GO_VER := $(shell go version | awk '{print $$3}') -LDFLAGS=-ldflags "-s -X main.applicationBuildTime=$(BUILD_TIME) -X main.applicationGitCommitID=$(GIT_LATEST_COMMIT_ID) -X main.applicationGoVersion=$(GO_VER) -X main.applicationGoArch=$(GOARCH)" GOARCH ?= amd64 TAGVER ?= unspecified +LDFLAGS =-ldflags "-s -X main.applicationBuildTime=$(BUILD_TIME) -X main.applicationGitCommitID=$(GIT_LATEST_COMMIT_ID) -X main.applicationGoVersion=$(GO_VER) -X main.applicationGoArch=$(GOARCH)" .PHONY: validate-app-version validate-app-version: