From 800a51d6cd22ac7b7465d2d408362f9683a11800 Mon Sep 17 00:00:00 2001 From: Zhuo Zhi Date: Mon, 11 Mar 2024 13:57:35 +0800 Subject: [PATCH] Set CGO_ENABLED=1 on riscv64 CGO works fine on riscv64 thus should be enabled. Avoid build error https://github.com/golang/go/issues/64875 Signed-off-by: Zhuo Zhi --- scripts/build/.variables | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build/.variables b/scripts/build/.variables index a9371ebec2..de7945d0a7 100755 --- a/scripts/build/.variables +++ b/scripts/build/.variables @@ -48,7 +48,7 @@ if [ -z "$CGO_ENABLED" ]; then case "$(go env GOOS)" in linux) case "$(go env GOARCH)" in - amd64|arm64|arm|s390x) + amd64|arm64|arm|s390x|riscv64) CGO_ENABLED=1 ;; *)