diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2017-04-11 20:38:36 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-04-12 15:09:58 +0100 |
commit | 30686e2fd68675bcafd37900ccd00ef8edc96543 (patch) | |
tree | 9834bc14d903d8e55501d3e930af9e064267876d | |
parent | a9f119382b31a40b600cb574eb896a762259c258 (diff) | |
download | poky-30686e2fd68675bcafd37900ccd00ef8edc96543.tar.gz |
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.
(From OE-Core rev: 58149a7be4172074349951aaf5af95fa40fd4bdb)
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/go/go.inc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/meta/recipes-devtools/go/go.inc b/meta/recipes-devtools/go/go.inc index 5ccbf73e23..25437ddfe3 100644 --- a/meta/recipes-devtools/go/go.inc +++ b/meta/recipes-devtools/go/go.inc | |||
@@ -1,6 +1,13 @@ | |||
1 | inherit goarch | 1 | inherit goarch |
2 | # libgcc is required for the target specific libraries to build properly | 2 | DEPENDS += "go-bootstrap-native" |
3 | DEPENDS += "go-bootstrap-native libgcc" | 3 | |
4 | # libgcc is required for the target specific libraries to build | ||
5 | # properly, but apparently not for go-cross and, more importantly, | ||
6 | # also can't be used there because go-cross cannot depend on | ||
7 | # the tune-specific libgcc. Otherwise go-cross also would have | ||
8 | # to be tune-specific. | ||
9 | DEPENDS += "${@ 'libgcc' if not oe.utils.inherits(d, 'cross') else ''}" | ||
10 | |||
4 | # Prevent runstrip from running because you get errors when the host arch != target arch | 11 | # Prevent runstrip from running because you get errors when the host arch != target arch |
5 | INHIBIT_PACKAGE_STRIP = "1" | 12 | INHIBIT_PACKAGE_STRIP = "1" |
6 | INHIBIT_SYSROOT_STRIP = "1" | 13 | INHIBIT_SYSROOT_STRIP = "1" |