carosio / meta-caros

CAROS yocto meta layer
Mozilla Public License 2.0
10 stars 14 forks source link

golang fails to cross-compile #36

Open pokymobo opened 9 years ago

pokymobo commented 9 years ago

@thz @tlnd CC_FOR_TARGET is messy in https://github.com/carosio/meta-caros/blob/master/recipes-devtools/go/golang-cross.inc#L38 somehow it always ends up to be the host gcc instead of the cross-compiler for the target. My naive attempt to fix it in https://github.com/carosio/meta-caros/commit/af4ef7499c9133a3942fc7986e8aff793449be44 didn't help also

RoadRunnr commented 9 years ago

The original source (meta-virtualizatio) switched to oe-meta-go: http://layers.openembedded.org/layerindex/branch/master/layer/meta-go/

Maybe, we should the same (or one fo the forks, e.g. https://github.com/lifupan/oe-meta-go/commit/d9baa310aca5228ed3aab63abff63898aa1727f2)