From 2f98fa0a14b99c209929154f7972a696319d4303 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Fri, 6 Nov 2015 23:55:02 -0800 Subject: [PATCH] build: update LDFLAGS for windows --- Makefile | 6 +++--- appveyor.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index d6f644f98..f805d04e1 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ -LDFLAGS = $(shell go run buildscripts/gen-ldflags.go) +LDFLAGS := $(shell go run buildscripts/gen-ldflags.go) DOCKER_LDFLAGS = '-extldflags "-static"' -TAG = latest +TAG := latest all: install @@ -55,7 +55,7 @@ test: build @GO15VENDOREXPERIMENT=1 go test $(GOFLAGS) github.com/minio/minio/pkg... gomake-all: build - @GO15VENDOREXPERIMENT=1 go build --ldflags $(LDFLAGS) -o $(GOPATH)/bin/minio + GO15VENDOREXPERIMENT=1 go build --ldflags $(LDFLAGS) -o $(GOPATH)/bin/minio pkg-add: @GO15VENDOREXPERIMENT=1 govendor add $(PKG) diff --git a/appveyor.yml b/appveyor.yml index 21c46e5d4..de98d04dd 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -28,7 +28,7 @@ build_script: - go test -race github.com/minio/minio/pkg... - go run buildscripts/gen-ldflags.go > temp.txt - set /p LDFLAGS=