projects/aports·blob master · refs

17 lines · 674 B

1Since Go 1.22 the build will fail with CGO_ENABLED=0 and -buildmode=pie
2since we enable -buildmode=pie by default, we need to enable CGO.
3
4See: https://gitlab.alpinelinux.org/alpine/aports/-/issues/15809
5
6diff -upr fq-0.10.0.orig/Makefile fq-0.10.0/Makefile
7--- fq-0.10.0.orig/Makefile 2024-03-02 13:28:08.077086376 +0100
8+++ fq-0.10.0/Makefile 2024-03-02 13:28:14.091342026 +0100
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