Skip to content

Commit 3e99a54

Browse files
cyckeriSecloud
authored andcommitted
fix(mongodb): 修复mongodb-toolkit无法静态编译的问题 #8350
1 parent e6a44f7 commit 3e99a54

File tree

1 file changed

+1
-1
lines changed
  • dbm-services/mongodb/db-tools/mongo-toolkit-go

1 file changed

+1
-1
lines changed

dbm-services/mongodb/db-tools/mongo-toolkit-go/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ check:
4141
build:
4242
@echo " > Building Linux binary..."
4343
# go build -v $(LDFLAGS) -o target/$(toolkit)_$(OS) cmd/mongo-toolkit-go/main.go
44-
GOOS=linux GOARCH=amd64 go build $(TRIMPATH) -v $(BUILD_FLAG) -o ./build/$(SRV_NAME)_Linux cmd/$(SRV_NAME)/main.go
44+
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build $(TRIMPATH) -v $(BUILD_FLAG) -o ./build/$(SRV_NAME)_Linux cmd/$(SRV_NAME)/main.go
4545

4646
local:
4747
@echo " > Building $(OS) binary..."

0 commit comments

Comments
 (0)