From b13cd85f0bf2c77a9e78dff6792a99b9f27d063c Mon Sep 17 00:00:00 2001 From: nkanaev Date: Tue, 14 May 2024 13:22:14 +0100 Subject: [PATCH] update makefile --- makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/makefile b/makefile index 57e4cbf2..e0cd7180 100644 --- a/makefile +++ b/makefile @@ -1,12 +1,10 @@ VERSION=2.4 GITHASH=$(shell git rev-parse --short=8 HEAD) -CGO_ENABLED=1 +GO_LDFLAGS = -s -w -X 'main.Version=$(VERSION)' -X 'main.GitHash=$(GITHASH)' -GO_LDFLAGS = -s -w -GO_LDFLAGS := $(GO_LDFLAGS) -X 'main.Version=$(VERSION)' -X 'main.GitHash=$(GITHASH)' - -export GOARCH ?= amd64 +export GOARCH ?= amd64 +export CGO_ENABLED = 1 build_default: mkdir -p _output