From 6dd2969f9be49524d50516710948c22e5445e083 Mon Sep 17 00:00:00 2001 From: Mmx Date: Sat, 23 Mar 2024 02:44:58 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BF=AE=E6=AD=A3=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 30d4a8a..a55ebf6 100644 --- a/README.md +++ b/README.md @@ -147,7 +147,7 @@ go build -gcflags=-trimpath=$GOPATH -asmflags=-trimpath=$GOPATH -ldflags "-s -w 交叉编译(Linux): ```shell -export GOGGC=0 +export CGO_ENABLED=0 export GOOS=windows #系统 export GOARCH=amd64 #架构 go build -gcflags=-trimpath=$GOPATH -asmflags=-trimpath=$GOPATH -ldflags "-s -w -extldflags '-static'" ./cmd/bitsrun @@ -156,7 +156,7 @@ go build -gcflags=-trimpath=$GOPATH -asmflags=-trimpath=$GOPATH -ldflags "-s -w 交叉编译(Powershell): ```shell -$env:GOGGC=0 +$env:CGO_ENABLED=0 $env:GOOS='linux' #系统 $env:GOARCH='amd64' #架构 go build -gcflags=-trimpath=$env:GOPATH -asmflags=-trimpath=$env:GOPATH -ldflags "-s -w -extldflags '-static'" ./cmd/bitsrun