build: Reduce binary size by using -s -w (#4027)

Refer #3939
This commit is contained in:
Harshavardhana 2017-04-01 01:06:16 -07:00 committed by GitHub
parent 4de6b15fca
commit 214279aa57

View file

@ -1,7 +1,7 @@
LDFLAGS := $(shell go run buildscripts/gen-ldflags.go)
PWD := $(shell pwd)
GOPATH := $(shell go env GOPATH)
BUILD_LDFLAGS := '$(LDFLAGS)'
BUILD_LDFLAGS := '$(LDFLAGS) -s -w'
TAG := latest
HOST ?= $(shell uname)