From 1dcc0e2627dbeec3b5fe73ef6c1dfb6415ddf3f0 Mon Sep 17 00:00:00 2001 From: oilbeater Date: Tue, 30 Jan 2018 00:17:06 +0800 Subject: [PATCH] update go version and ldflags update go version to 1.9.3 and add -w ldflag to remove DWARF symbol table from binary see: https://golang.org/cmd/link/ --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7ee46aa0c2..340893570c 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ GCS_URL=$(GCS_LOCATION:gs://%=https://storage.googleapis.com/%) LATEST_FILE?=latest-ci.txt GOPATH_1ST=$(shell go env | grep GOPATH | cut -f 2 -d \") UNIQUE:=$(shell date +%s) -GOVERSION=1.9.2 +GOVERSION=1.9.3 BUILD=$(GOPATH_1ST)/src/k8s.io/kops/.build LOCAL=$(BUILD)/local BINDATA_TARGETS=upup/models/bindata.go federation/model/bindata.go @@ -90,7 +90,7 @@ ifdef STATIC_BUILD CGO_ENABLED=0 export CGO_ENABLED EXTRA_BUILDFLAGS=-installsuffix cgo - EXTRA_LDFLAGS=-s + EXTRA_LDFLAGS=-s -w endif SHASUMCMD := $(shell command -v sha1sum || command -v shasum; 2> /dev/null)