]> code.ossystems Code Review - openembedded-core.git/commit
go.bbclass: Use external linker for native packages
authorKhem Raj <raj.khem@gmail.com>
Tue, 15 Dec 2020 08:49:56 +0000 (00:49 -0800)
committerAnuj Mittal <anuj.mittal@intel.com>
Mon, 28 Dec 2020 01:53:26 +0000 (09:53 +0800)
commit7fa9d5719aa02a9baa4f389c2d24f5de8939f46b
treeac6fde573ab9537798ffa6e62792f52d234ac39e
parent87479f0e63b300231bdaa49b89e8cf91caa2e57e
go.bbclass: Use external linker for native packages

go 1.15 has reworked internal linker, which has resulted in regressions
in OE where native binaries generated using internal linker in some
cases result in corruption during populate_sysroot e.g. glide-native
crashing when used after relocation.

This improved reliability of native binaries working especially when
they use cgo or pie build modes

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Otavio Salvador <otavio.salvador@ossystems.com.br>
Cc: Konrad Weihmann <kweihmann@outlook.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit daf4856ea3ccafc05c808a34d4c6af2bfafea12f)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/classes/go.bbclass