From 54b5bfc64d0a0f1570a9eca3a6555e4f8d22f8de Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Fri, 23 Dec 2022 14:08:39 +0100 Subject: [PATCH] Link statically --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index dc4616e..2d7a03f 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ srv: srv.go internal/*/*.go internal/*/*/*.go - go build -o srv ./ + go build -o srv -ldflags '-w -linkmode external -extldflags "-static"' ./ go-test: go test ./...