Skip to content

Commit

Permalink
make the build static
Browse files Browse the repository at this point in the history
  • Loading branch information
Bai-Yingjie committed Apr 10, 2024
1 parent 9174695 commit f6aa9bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f6aa9bc

Please sign in to comment.