1
0
mirror of https://github.com/coreos/coreos-assembler.git synced 2026-02-05 09:44:53 +01:00

Set CGO_ENABLED=0 for riscv64

This fails with a symbol error. Error reported upstream
in https://github.com/golang/go/issues/72840
This commit is contained in:
Dusty Mabe
2025-04-21 16:41:31 -04:00
parent bb05e8fa77
commit c0092f872d

View File

@@ -36,6 +36,10 @@ ifeq ($(GOARCH),x86_64)
else ifeq ($(GOARCH),aarch64)
GOARCH="arm64"
endif
ifeq ($(GOARCH),riscv64)
# https://github.com/golang/go/issues/72840
export CGO_ENABLED := 0
endif
bin/coreos-assembler:
cd cmd && go build -mod vendor -o ../$@