From 216431f59132964d114b735553e89ed5075e09e6 Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Thu, 17 Nov 2022 20:24:09 +0100 Subject: [PATCH] fix(make): default file should be static linked [CI SKIP] Follow the go way --- template.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template.mk b/template.mk index 3602b4a..e620c59 100644 --- a/template.mk +++ b/template.mk @@ -10,7 +10,7 @@ CGO_ENABLED ?= 0 GO ?= go TEST ?= $(GO) test -race -cover COVER ?= $(GO) tool cover -GOFLAGS ?= -buildmode=pie -trimpath -ldflags="-s -w -X=main.version=$(HASH) -linkmode=external" +GOFLAGS ?= -trimpath -ldflags="-s -w -X=main.version=$(HASH)" DESTDIR := PREFIX ?= /usr/local