mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-22 06:51:26 +02:00
There are a few quirks with Go to deal with when cross-compiling: - Since DEPEND cannot distinguish cross-architecture dependencies the current ebuild cannot keyword all architectures it supports. This could be resolved in the future with a special use flag or other clever trick to drop go-bootstrap from DEPEND for cross builds. - GOHOST* and CC variables are CBUILD values. - GO* and *_FOR_TARGET variables are CHOST values. - Go can always be used as a cross-compiler so handling the CHOST!=CTARGET case isn't strictly required. We could provide a pre-built copy of the std library for CTARGET's architecture but I'm not sure if that would be useful or not. For now the ebuild just doesn't allow that case. Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=558216 Gentoo-Commit: 0f4f3b8d200e15982e5e75f52f3c472d152cc4c9