psanford / wormhole-william

End-to-end encrypted file transfer. A magic wormhole CLI and API in Go (golang).
MIT License
1.03k stars 56 forks source link

Please provide linux builds with musl libc #109

Open sivachandran opened 5 months ago

sivachandran commented 5 months ago

Thank you for the project. I use it regularly on multiple machines. But presently the linux builds require a specific libc runtime which is not available in my target hosts. So I have to build with CGO_ENABLED=1 CC=musl-gcc go build --ldflags '-linkmode external -extldflags=-static' and use it.

It would be super helpful for people like me if you can also release linux builds with musl libc.

Jacalz commented 4 months ago

Does it work if you build with CGO_ENABLED=off go build -tags netgo?. I think that should build entirely without CGO support as another option.

sivachandran commented 4 months ago

Yes, building with CGO_ENABLED=off go build -tags netgo works too. Thanks!