]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 18 Dec 2020 22:52:13 +0000 (22:52 +0000)
commitdaf4856ea3ccafc05c808a34d4c6af2bfafea12f
tree5e7729bf01516b003756a65f032930ce4f7364ee
parentd39b686cc5fcc89405ffeb560ea64b5d305b0608
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>
meta/classes/go.bbclass