From 214279aa5705400a22a783fb1062fb40bc73b2dd Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sat, 1 Apr 2017 01:06:16 -0700 Subject: [PATCH] build: Reduce binary size by using -s -w (#4027) Refer #3939 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e4998ae69..eed35762e 100644 --- a/Makefile +++ b/Makefile @@ -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)