1
1
mirror of https://github.com/wader/fq.git synced 2024-11-26 10:33:53 +03:00

make: CGO_ENABLED=0 for static build

This commit is contained in:
Mattias Wadman 2021-09-18 18:22:41 +02:00
parent 98a8baea22
commit 1557e14ec7

View File

@ -3,7 +3,7 @@ all: test
.PHONY: fq
fq: VERSION=$(shell git describe --all --long --dirty 2>/dev/null || echo nogit)
fq:
go build -ldflags "-X main.version=${VERSION}" -trimpath -o fq .
CGO_ENABLED=0 go build -ldflags "-X main.version=${VERSION}" -trimpath -o fq .
.PHONY: test
# figure out all go pakges with test files