cloudflared icon indicating copy to clipboard operation
cloudflared copied to clipboard

RISC-V linux support?

Open xlmnxp opened this issue 2 years ago • 1 comments

Describe the feature you'd like I tried to install cloudflared to RISC-V board specific StarFive VisionFive and I'm using Lubunu (it support both Debian and Fedora) but I couldn't found the risc-v binaries

xlmnxp avatar Apr 09 '22 23:04 xlmnxp

Go is very good at cross-compiling, which means that you can make a binary on any host with Go installed:

GOOS=linux GOARCH=riscv64 go build -o /tmp/cloudflared ./cmd/cloudflared
$ file /tmp/cloudflared
/tmp/cloudflared: ELF 64-bit LSB executable, UCB RISC-V, double-float ABI, version 1 (SYSV), statically linked, Go BuildID=ZFw-Dky8XP4EEOTiHZAm/6XUI23C2GacA-JcFU3GG/ETtQgdXdaonlBGRYdDBi/1xjGcF4ukaFnTa-3svu-, not stripped

bobrik avatar Apr 10 '22 16:04 bobrik