| 1 | Since Go 1.22 the build will fail with CGO_ENABLED=0 and -buildmode=pie
|
| 2 | since we enable -buildmode=pie by default, we need to enable CGO.
|
| 3 |
|
| 4 | See: https://gitlab.alpinelinux.org/alpine/aports/-/issues/15809
|
| 5 |
|
| 6 | diff -upr fq-0.10.0.orig/Makefile fq-0.10.0/Makefile
|
| 7 | |
| 8 | |
| 9 | @@ -7,7 +7,7 @@ all: test fq
|
| 10 | .PHONY: always
|
| 11 |
|
| 12 | fq: always
|
| 13 | - CGO_ENABLED=0 go build -o fq -ldflags "${GO_BUILD_LDFLAGS}" ${GO_BUILD_FLAGS} .
|
| 14 | + go build -o fq -ldflags "${GO_BUILD_LDFLAGS}" ${GO_BUILD_FLAGS} .
|
| 15 |
|
| 16 | test: always testgo testjq testcli
|
| 17 | test-race: always testgo-race testjq testcli
|