X Tutup
Skip to content

Commit a045575

Browse files
committed
Strip binaries in Makefile
This will make the binaries around 8MB smaller. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
1 parent 99595e0 commit a045575

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ COMMANDS=ctr containerd containerd-stress containerd-release
4242
BINARIES=$(addprefix bin/,$(COMMANDS))
4343

4444
GO_TAGS=$(if $(BUILDTAGS),-tags "$(BUILDTAGS)",)
45-
GO_LDFLAGS=-ldflags "-X $(PKG)/version.Version=$(VERSION) -X $(PKG)/version.Revision=$(REVISION) -X $(PKG)/version.Package=$(PKG) $(EXTRA_LDFLAGS)"
45+
GO_LDFLAGS=-ldflags "-s -w -X $(PKG)/version.Version=$(VERSION) -X $(PKG)/version.Revision=$(REVISION) -X $(PKG)/version.Package=$(PKG) $(EXTRA_LDFLAGS)"
4646

4747
TESTFLAGS_RACE=
4848
GO_GCFLAGS=

0 commit comments

Comments
 (0)
X Tutup