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

build-cross-releases produces cgo-dependent binary #86

Closed
ahmetb opened this issue Oct 11, 2018 · 0 comments
Closed

build-cross-releases produces cgo-dependent binary #86

ahmetb opened this issue Oct 11, 2018 · 0 comments

Comments

@ahmetb
Copy link
Member

ahmetb commented Oct 11, 2018

A binary compiled with build-cross-releases on glibc doesn't work on Alpine.

Needs cgo disabling and cross-compilation flags.

ahmetb added a commit that referenced this issue Oct 11, 2018
- set CGO_ENABLED=0
- use -w ldflags (no DWARF, ~20 smaller binaries)
- use -tags=netgo (pure Go net)

Fixes #85
Fixes #86
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

1 participant