Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 558216 - dev-lang/go: add support for cross-compiling
Summary: dev-lang/go: add support for cross-compiling
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-20 00:41 UTC by mike@marineau.org
Modified: 2015-08-21 00:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-lang/go: add support for cross-compiling (0001-dev-lang-go-add-support-for-cross-compiling.patch,5.42 KB, patch)
2015-08-20 00:41 UTC, mike@marineau.org
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mike@marineau.org 2015-08-20 00:41:35 UTC
Created attachment 409516 [details, diff]
dev-lang/go: add support for cross-compiling

This patch for the go live ebuild (works for 1.5 too) sets up the environment just the way make.bash and go want it. Tested with amd64-to-arm64 and amd64-to-amd64 builds. Should work with others too, those are just the two cases I have to deal with. The quirks involved are all documented in the patch. Let me know if you have any questions. :)

Thanks go to Geoff Levand for an initial arm64 specific attempt at this.
Comment 1 William Hubbs gentoo-dev 2015-08-21 00:39:15 UTC
This is added to the tree as the live ebuild and as go-1.5.
Thanks for the report and your contribution. :-)