build: reduce binary size with optimisation flags
continuous-integration/drone/push Build is passing Details

Part of https://git.autonomic.zone/coop-cloud/go-abra/issues/4.
This commit is contained in:
decentral1se 2021-07-20 22:45:06 +02:00
parent 16514b3151
commit c9ba7aef20
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ ABRA := ./cmd/abra
COMMIT := $(shell git rev-list -1 HEAD)
GOPATH := $(shell go env GOPATH)
VERSION := $(shell cat ./version)
LDFLAGS := "-X 'main.Commit=$(COMMIT)' -X 'main.Version=$(VERSION)'"
LDFLAGS := "-X 'main.Commit=$(COMMIT)' -X 'main.Version=$(VERSION)' -s -w"
all: run test install build clean format check static