Skip to content

Commit

Permalink
Add -s -w for gen-ldflags.go
Browse files Browse the repository at this point in the history
  • Loading branch information
minio-trusted committed Jun 15, 2017
1 parent ea05fcb commit c32b1ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
LDFLAGS := $(shell go run buildscripts/gen-ldflags.go)
BUILD_LDFLAGS := '$(LDFLAGS) -s -w'
BUILD_LDFLAGS := '$(LDFLAGS)'

all: install

Expand Down
2 changes: 1 addition & 1 deletion buildscripts/gen-ldflags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit c32b1ea

Please sign in to comment.