From ff763e8385a4c3f0abbb0c9189e2b8287b307a07 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Mon, 27 May 2019 17:13:04 +0200 Subject: [PATCH] add ldflags to go build --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a91eeb7..51e1b03 100644 --- a/Makefile +++ b/Makefile @@ -4,10 +4,10 @@ clean: rm -r bin/ bin/ecload: - GOOS=linux GOARCH=amd64 go build -v -o $@ cmd/ecload/main.go + GOOS=linux GOARCH=amd64 go build -v -ldflags '-s' -o $@ cmd/ecload/main.go bin/ecload.exe: - GOOS=windows GOARCH=amd64 go build -v -o $@ cmd/ecload/main.go + GOOS=windows GOARCH=amd64 go build -ldflags '-s' -v -o $@ cmd/ecload/main.go bin/ecload-mac: - GOOS=darwin GOARCH=amd64 go build -v -o $@ cmd/ecload/main.go + GOOS=darwin GOARCH=amd64 go build -ldflags '-s' -v -o $@ cmd/ecload/main.go