summarylogtreecommitdiffstats
path: root/strip.patch
blob: 25a8388b1f6400934d00c2b17cd7da281442086a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cmd/ipfs/Rules.mk b/cmd/ipfs/Rules.mk
index 2a768b5fc..b3f895e48 100644
--- a/cmd/ipfs/Rules.mk
+++ b/cmd/ipfs/Rules.mk
@@ -13,7 +13,7 @@ PATH := $(realpath $(d)):$(PATH)
 # DEPS_OO_$(d) += merkledag/pb/merkledag.pb.go namesys/pb/namesys.pb.go
 # DEPS_OO_$(d) += pin/internal/pb/header.pb.go unixfs/pb/unixfs.pb.go
 
-$(d)_flags =-ldflags="-X "github.com/ipfs/go-ipfs".CurrentCommit=$(git-hash)"
+$(d)_flags =-ldflags="-s -w -X github.com/ipfs/go-ipfs.CurrentCommit=$(git-hash)"
 
 $(d)-try-build $(IPFS_BIN_$(d)): GOFLAGS += $(cmd/ipfs_flags)