Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please provide linux builds with musl libc #109

Open
sivachandran opened this issue Jan 23, 2024 · 2 comments
Open

Please provide linux builds with musl libc #109

sivachandran opened this issue Jan 23, 2024 · 2 comments

Comments

@sivachandran
Copy link

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
Copy link
Contributor

Jacalz commented Mar 4, 2024

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants