add ldflags to go build

This commit is contained in:
Sebastian Hugentobler 2019-05-27 17:13:04 +02:00
parent d5bd53089f
commit ff763e8385

View File

@ -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