fix: add CGO_ENABLED=0 for static build to fix cross-platform GLIBC errors
This commit is contained in:
parent
8774526616
commit
8405d390df
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
|
@ -14,7 +14,7 @@ GO_VERSION=$(shell $(GO) version | awk '{print $$3}')
|
|||
LDFLAGS=-ldflags "-X main.version=$(VERSION) -X main.gitCommit=$(GIT_COMMIT) -X main.buildTime=$(BUILD_TIME) -X main.goVersion=$(GO_VERSION) -s -w"
|
||||
|
||||
# Go variables
|
||||
GO?=go
|
||||
GO?=CGO_ENABLED=0 go
|
||||
GOFLAGS?=-v -tags stdjson
|
||||
|
||||
# Golangci-lint
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue