From ebaf492dd936f6f4f40b22bdc9e9c27194f3ad7d Mon Sep 17 00:00:00 2001 From: mozillazg Date: Sun, 21 Apr 2024 22:09:15 +0800 Subject: [PATCH] build with statically linking --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ae3a5dfb..35693165 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .PHONY: build build: generate - go build + CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' .PHONY: generate generate: