From c9ba7aef208218f4293ac44e0638ab7766ec6340 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Tue, 20 Jul 2021 22:45:06 +0200 Subject: [PATCH] build: reduce binary size with optimisation flags Part of https://git.autonomic.zone/coop-cloud/go-abra/issues/4. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a2d1d432..dceeefd0 100644 --- a/Makefile +++ b/Makefile @@ -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