]> code.ossystems Code Review - openembedded-core.git/commit
go-cross: avoid libgcc dependency
authorPatrick Ohly <patrick.ohly@intel.com>
Tue, 11 Apr 2017 18:38:36 +0000 (20:38 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 12 Apr 2017 14:02:13 +0000 (15:02 +0100)
commit58149a7be4172074349951aaf5af95fa40fd4bdb
tree1caa0a19a9591cef7be1a69fc2b0f9a42fdef72c
parenta2f1026b3d8c9f9810cb4389a8a93fabb04e15a4
go-cross: avoid libgcc dependency

libgcc gets compiled differently depending on the tune flags for the
target. That dependency would make go-cross also tune specific and
prevent sharing it between different machines using the same
architecture.

For example, MACHINE=intel-corei7-64 and MACHINE=qemux86-64 shared the
same go-cross-x86_64, but compiled libgcc differently.

The libgcc dependency gets inherited from go.inc, but does not seem to
be necessary for go-cross (compiling go-helloworld still succeeds).
The dependency is left in go.inc conditionally, just in case that it
really is relevant for the various on-target recipes which inherit
that.

Because go-cross*.bb includes go*.bb, moving the DEPENDS into a .inc
file that only gets included for the target recipes doesn't
work. Reshuffling the content of three .bb files seems too intrusive
at this point.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/go/go.inc