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

Document requirements for cross compiling from OSX #804

Merged
merged 2 commits into from
May 15, 2020

Conversation

vishnukvmd
Copy link
Contributor

Inspiration: #384 (comment)

@coveralls
Copy link

coveralls commented Apr 17, 2020

Coverage Status

Coverage increased (+0.2%) to 53.306% when pulling 931bb27 on vishnukvmd:patch-2 into 98a44bc on mattn:master.

@vishnukvmd vishnukvmd mentioned this pull request Apr 22, 2020
@gertcuykens
Copy link

gertcuykens commented Apr 22, 2020

Don't think it's complete? One is for compiling to alpine (musl) other for compiling to windows (mingw-w64) and non of them compile to Linux (libc debian) or native Windows

Also I believe the -ldflags "-linkmode external -extldflags -static" are important to explain?

@vishnukvmd
Copy link
Contributor Author

@gertcuykens I ran into more issues while cross compiling for ARM, and at this point I'd heavily recommend using xgo which seems to work out of the box for a wide variety of targets.

@mattn mattn merged commit e77f7dd into mattn:master May 15, 2020
@mattn
Copy link
Owner

mattn commented May 15, 2020

Thank you

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

Successfully merging this pull request may close these issues.

4 participants