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
cmd/go: docs need section on cross-compiling #17620
Comments
I don't think sudo is ever required.
|
Sudo is usually required to rebuild std & cmd. Dave Cheney has been saying:
The go package for my system installs the following; one must have root privs to modify it.
|
That is why I recommend go build. For the record, I do not think we should document this on godoc.org. I On Fri, Oct 28, 2016 at 3:04 AM, Liam notifications@github.com wrote:
|
All of the cross-compiling environment variables are documented in cmd/go, but not how to use them for practical purposes. It's an omission which generates recurring questions. To my eye, the only arcane aspect is the value for CC, which can be left out of the command line examples and discussed in a separate paragraph. |
@davecheney Thanks so much for the constructive, actionable feedback about our documentation! |
@rsc I'm the one who posted the constructive, actionable feedback :-) |
None of this setup is necessary anymore. |
I got OK to post this issue from:
https://groups.google.com/d/msg/golang-nuts/IW4FiCclZTw/45wa1V9UBwAJ
Add a new section to docs for cmd/go: "Cross Compiling"
Instructions to rebuild Go source for new platform:
Instructions for cross compiling packages:
Also need instructions for Windows, OS X, etc.
The text was updated successfully, but these errors were encountered: