We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 534e2cc commit 580b26dCopy full SHA for 580b26d
Makefile
@@ -5,12 +5,13 @@ GOPROXY := "https://goproxy.cn,direct"
5
GOOS := $(if $(GOOS),$(GOOS),$(shell go env GOOS))
6
GOARCH := $(if $(GOARCH),$(GOARCH),$(shell go env GOARCH))
7
CGO_LDFLAGS := "-static"
8
+CGO_CFLAGS := "-D_LARGEFILE64_SOURCE"
9
CC := musl-gcc
10
11
GOENV := GO111MODULE=on
12
GOENV += GOPROXY=$(GOPROXY)
13
GOENV += CC=$(CC)
-GOENV += CGO_ENABLED=1 CGO_LDFLAGS=$(CGO_LDFLAGS)
14
+GOENV += CGO_ENABLED=1 CGO_LDFLAGS=$(CGO_LDFLAGS) CGO_CFLAGS=$(CGO_CFLAGS)
15
GOENV += GOOS=$(GOOS) GOARCH=$(GOARCH)
16
GOLANGCILINT_VERSION ?= v1.50.0
17
GOBIN := $(shell go env GOPATH)/bin
0 commit comments