]> code.ossystems Code Review - openembedded-core.git/commit
go-runtime: prevent host leakage into target objects
authorMatt Madison <matt@madison.systems>
Wed, 4 Oct 2017 18:21:52 +0000 (18:21 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 Oct 2017 11:03:32 +0000 (12:03 +0100)
commit070f4af529c84a3c8c0b1ffc7b138bdd9e8439b7
treec15e3568a9031da4e498146c4365b606a5807207
parent1bc4c1d880096083d1891a74024fb225a6340b9b
go-runtime: prevent host leakage into target objects

When building for a target whose architecture matches
the build host's, the second pass through make.bash
to build the shareable runtime would also overwrite
the target's static cgo library with host-compatibile
binaries.

Fix this by running the host-side build once and
target-only passes of make.bash twice, for static
and shareable.  This ensures that what gets installed
is target-compatible.

Also fix an issue with x86-64 targets running MUSL by
removing the pre-built (for glibc) objects for the
race detector runtime before building.

[YOCTO #12136]

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/go/go-runtime.inc