From ae6267c906a6e102ecba6c2b25c424045081f395 Mon Sep 17 00:00:00 2001 From: Kaushal M Date: Mon, 20 Feb 2017 13:30:46 +0530 Subject: [PATCH] build: Use GOTAGS for static builds as well --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c79f21f0..e072faf9 100644 --- a/Makefile +++ b/Makefile @@ -118,9 +118,9 @@ $(PROGRAM).static: main.go go generate ifneq ($(OLDGOLANG),) @# avoid equals sign in old golang versions eg in: -X foo=bar - go build -a -installsuffix cgo -tags netgo -ldflags '-extldflags "-static" -X main.program $(PROGRAM) -X main.version $(SVERSION)' -o $(PROGRAM).static; + go build -a -installsuffix cgo -tags netgo -ldflags '-extldflags "-static" -X main.program $(PROGRAM) -X main.version $(SVERSION)' -o $(PROGRAM).static $(BUILD_FLAGS); else - go build -a -installsuffix cgo -tags netgo -ldflags '-extldflags "-static" -X main.program=$(PROGRAM) -X main.version=$(SVERSION)' -o $(PROGRAM).static; + go build -a -installsuffix cgo -tags netgo -ldflags '-extldflags "-static" -X main.program=$(PROGRAM) -X main.version=$(SVERSION)' -o $(PROGRAM).static $(BUILD_FLAGS); endif clean: