diff options
author | Ross Burton <ross.burton@arm.com> | 2022-07-25 16:53:44 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-25 22:59:01 +0100 |
commit | a87284d4ab7f6ac80eba2c2ccaf8857278c52d86 (patch) | |
tree | f6da2760bd8a7e03293bf00b85d46b9ace924eb3 /meta/lib/oeqa | |
parent | e857abbfcba5ce375235505f139f279bea8c8ef8 (diff) | |
download | poky-a87284d4ab7f6ac80eba2c2ccaf8857278c52d86.tar.gz |
oeqa/gotoolchain: set CGO_ENABLED=1
In cross-compiles CGO_ENABLED=1 needs to be set explicitly, as otherwise
Go refuses to use it even if CC is already set.
This fixes the selftest on setups where the host and the SDK target
don't have matching architectures.
[ YOCTO #14859 ]
(From OE-Core rev: 19be072619d39267df44f23c4c8b64f3808f6148)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/gotoolchain.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/gotoolchain.py b/meta/lib/oeqa/selftest/cases/gotoolchain.py index 345f533379..978898b86f 100644 --- a/meta/lib/oeqa/selftest/cases/gotoolchain.py +++ b/meta/lib/oeqa/selftest/cases/gotoolchain.py | |||
@@ -51,6 +51,7 @@ class oeGoToolchainSelfTest(OESelftestTestCase): | |||
51 | cmd = cmd + ". %s; " % self.env_SDK | 51 | cmd = cmd + ". %s; " % self.env_SDK |
52 | cmd = cmd + "export GOPATH=%s; " % self.go_path | 52 | cmd = cmd + "export GOPATH=%s; " % self.go_path |
53 | cmd = cmd + "export GOFLAGS=-modcacherw; " | 53 | cmd = cmd + "export GOFLAGS=-modcacherw; " |
54 | cmd = cmd + "export CGO_ENABLED=1; " | ||
54 | cmd = cmd + "${CROSS_COMPILE}go %s" % gocmd | 55 | cmd = cmd + "${CROSS_COMPILE}go %s" % gocmd |
55 | return runCmd(cmd).status | 56 | return runCmd(cmd).status |
56 | 57 | ||