fix(Makefile): disable CGO
This commit is contained in:
parent
5d4675ea34
commit
492416ff83
6
Makefile
6
Makefile
@ -65,13 +65,13 @@ PHONY:=all
|
|||||||
all: ${EXECUTABLE_TARGETS}
|
all: ${EXECUTABLE_TARGETS}
|
||||||
|
|
||||||
bin/linux/amd64/$(EXECUTABLE): bindata
|
bin/linux/amd64/$(EXECUTABLE): bindata
|
||||||
GOARCH=amd64 GOOS=linux go build -ldflags "-X main.version=${VERSION}" -o "$@"
|
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -ldflags "-X main.version=${VERSION}" -o "$@"
|
||||||
|
|
||||||
bin/linux/arm/5/$(EXECUTABLE): bindata
|
bin/linux/arm/5/$(EXECUTABLE): bindata
|
||||||
GOARCH=amd64 GOOS=linux go build -ldflags "-X main.version=${VERSION}" -o "$@"
|
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -ldflags "-X main.version=${VERSION}" -o "$@"
|
||||||
|
|
||||||
bin/linux/arm/7/$(EXECUTABLE): bindata
|
bin/linux/arm/7/$(EXECUTABLE): bindata
|
||||||
GOARCH=amd64 GOOS=linux go build -ldflags "-X main.version=${VERSION}" -o "$@"
|
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -ldflags "-X main.version=${VERSION}" -o "$@"
|
||||||
|
|
||||||
bin/tmp/${EXECUTABLE}: bindata
|
bin/tmp/${EXECUTABLE}: bindata
|
||||||
go build -ldflags "-X main.version=${VERSION}" -o "$@"
|
go build -ldflags "-X main.version=${VERSION}" -o "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user