Strip Go files to make them a bit smaller

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2017-03-09 14:58:57 +00:00
parent 5aa5852eb0
commit 154c3516b2
7 changed files with 8 additions and 8 deletions

View File

@@ -63,7 +63,7 @@ if [ "$GOOS" = "darwin" ]
then
go build -o $out "$package"
else
go build -o $out -buildmode pie --ldflags '-extldflags "-static"' "$package"
go build -o $out -buildmode pie --ldflags '-s -w -extldflags "-static"' "$package"
fi
tar cf - $out