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

Refer #3939
master
Harshavardhana 8 years ago committed by GitHub
parent 4de6b15fca
commit 214279aa57
  1. 2
      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)

Loading…
Cancel
Save