> Hi Minux, thanks for the heads-up. Do you know if there are any other
> limitations of the cross-compiler?
> It would be good to get some definitive info on this.
Cross compilation disabled cgo, that is the only restriction.
> I'd like to document goxc with this kind of limitation, and probably log
> warning messages when cross-compiling to darwin.
>
> Also, your 'if ...' statement suggests it might be possible to set up a cgo
> cross-compiler - using a x-compiled gcc toolchain?
> That would be interesting. More work-intensive I'm sure though.
It is possible to do, but the amount of work (not to mention the CI
load) required, is substantial. For example, in your linux -> darwin
example, the compilation is pretty straight forward, but the linking
including having access to the darwin .framework libraries is non
trivial and hugely error prone.