From 4a1caf6e7c7546c5ccef1423f6bfb107f6822397 Mon Sep 17 00:00:00 2001 From: Chris Cummer Date: Tue, 17 Jul 2018 11:55:40 -0700 Subject: [PATCH] Use -s -w to reduce the final binary size when running 'make install' --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0a1982b5..bde2f7a7 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ contrib_check: install: go clean - go install -ldflags="-X main.version=$(shell git describe --always --abbrev=6) -X main.date=$(shell date +%FT%T%z)" + go install -ldflags="-s -w -X main.version=$(shell git describe --always --abbrev=6) -X main.date=$(shell date +%FT%T%z)" which wtf run: build