summarylogtreecommitdiffstats
path: root/mattermost-ldflags.patch
blob: 2f863a0ff9b8b66a620e1c5c3edc928e4e014852 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/Makefile
+++ b/Makefile
@@ -48,6 +48,7 @@ GOFLAGS ?= $(GOFLAGS:)
 GO=go
 DELVE=dlv
 GO_LINKER_FLAGS ?= -ldflags \
-				   "-X github.com/mattermost/mattermost-server/model.BuildNumber=$(BUILD_NUMBER)\
+				   "-linkmode external -extldflags '$(LDFLAGS)' -s -w \
+				    -X github.com/mattermost/mattermost-server/model.BuildNumber=$(BUILD_NUMBER)\
 				    -X 'github.com/mattermost/mattermost-server/model.BuildDate=$(BUILD_DATE)'\
 				    -X github.com/mattermost/mattermost-server/model.BuildHash=$(BUILD_HASH)\