Skip to content

[Question] Is possible compile it for a 3M device? #1422

@Milor123

Description

@Milor123

Guys I have a router with MIPS cpu, but i have 2.7M of storage, is possible compile the cloudflared binary for working with it?

I've tried compiled it using

CGO_ENABLED=0 GOOS=linux GOARCH=mipsle GOMIPS=softfloat go build -a -installsuffix cgo -ldflags "-s -w -extldflags '-static'" .

and compress with

upx --best --lzma cloudflared

But i get 5M binary after use upx hahaha, and i dont have USB ports, nothing. what should i do guys?

Could Guide me?
Thank u very much

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions