Skip to content

Commit 7c56335

Browse files
committed
Set CGO_ENABLED=0 for riscv64
This fails with a symbol error. Error reported upstream in golang/go#72840
1 parent d9253dc commit 7c56335

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ ifeq ($(GOARCH),x86_64)
3636
else ifeq ($(GOARCH),aarch64)
3737
GOARCH="arm64"
3838
endif
39+
ifeq ($(GOARCH),riscv64)
40+
# https://github.com/golang/go/issues/72840
41+
export CGO_ENABLED := 0
42+
endif
3943

4044
bin/coreos-assembler:
4145
cd cmd && go build -mod vendor -o ../$@

0 commit comments

Comments
 (0)