From f6aa9bce2295cdc21c14609e700117b772b29e2c Mon Sep 17 00:00:00 2001 From: Bai Yingjie Date: Wed, 10 Apr 2024 08:28:23 +0000 Subject: [PATCH] make the build static --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index ddfc0af..7df8870 100644 --- a/Makefile +++ b/Makefile @@ -72,6 +72,7 @@ lite: EXTTAGS := $(EXTTAGS),echomsg,topidchartmsg,recordermsg lite: build ## Build lite release binary to bin dir full: CGO := 1 +full: LDFLAGS += -linkmode=external -extldflags=-static full: EXTTAGS := plugin,debug,$(EXTTAGS),echo,fileserver,topidchart,docit,recorder full: STDTAGS := $(STDTAGS),stdarchive,stdcompress,stdcontainer,stdcrypto,stddatabase,stdencoding full: STDTAGS := $(STDTAGS),stdhash,stdhtml,stdlog,stdmath,stdhttp,stdmail,stdrpc,stdregexp,stdtext,stdunicode