From cb476369ef8bb1047ace9278a3ad6e30840a2239 Mon Sep 17 00:00:00 2001 From: cycker Date: Mon, 2 Dec 2024 17:56:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(mongodb):=20=E4=BF=AE=E5=A4=8Dmongodb-toolk?= =?UTF-8?q?it=E6=97=A0=E6=B3=95=E9=9D=99=E6=80=81=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20#8350?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbm-services/mongodb/db-tools/mongo-toolkit-go/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbm-services/mongodb/db-tools/mongo-toolkit-go/Makefile b/dbm-services/mongodb/db-tools/mongo-toolkit-go/Makefile index 6c4c43557f..82d7b23d91 100644 --- a/dbm-services/mongodb/db-tools/mongo-toolkit-go/Makefile +++ b/dbm-services/mongodb/db-tools/mongo-toolkit-go/Makefile @@ -41,7 +41,7 @@ check: build: @echo " > Building Linux binary..." # go build -v $(LDFLAGS) -o target/$(toolkit)_$(OS) cmd/mongo-toolkit-go/main.go - GOOS=linux GOARCH=amd64 go build $(TRIMPATH) -v $(BUILD_FLAG) -o ./build/$(SRV_NAME)_Linux cmd/$(SRV_NAME)/main.go + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build $(TRIMPATH) -v $(BUILD_FLAG) -o ./build/$(SRV_NAME)_Linux cmd/$(SRV_NAME)/main.go local: @echo " > Building $(OS) binary..."