Add -s -w for gen-ldflags.go

This commit is contained in:
Minio Trusted
2017-06-14 20:34:56 -07:00
parent ea05fcbcf5
commit c32b1ea48b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
LDFLAGS := $(shell go run buildscripts/gen-ldflags.go)
BUILD_LDFLAGS := '$(LDFLAGS) -s -w'
BUILD_LDFLAGS := '$(LDFLAGS)'
all: install
+1 -1
View File
@@ -28,7 +28,7 @@ import (
func genLDFlags(version string) string {
var ldflagsStr string
ldflagsStr = "-X github.com/minio/mc/cmd.Version=" + version + " "
ldflagsStr = "-s -w -X github.com/minio/mc/cmd.Version=" + version + " "
ldflagsStr = ldflagsStr + "-X github.com/minio/mc/cmd.ReleaseTag=" + releaseTag(version) + " "
ldflagsStr = ldflagsStr + "-X github.com/minio/mc/cmd.CommitID=" + commitID() + " "
ldflagsStr = ldflagsStr + "-X github.com/minio/mc/cmd.ShortCommitID=" + commitID()[:12]