mirror of
https://git.yoctoproject.org/poky
synced 2026-04-29 09:32:11 +02:00
go: Use -no-pie to build target cgo
Fixes go: ELF binary /usr/lib/go/pkg/tool/linux_arm64/pprof has relocations in .text go: ELF binary /usr/lib/go/bin/go has relocations in .text [textrel] (From OE-Core rev: a27d39aebd5966ffffb57c20518381cb06ba8373) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -3,7 +3,7 @@ require go-target.inc
|
||||
|
||||
inherit linuxloader
|
||||
|
||||
CGO_LDFLAGS:append:mips = " -no-pie"
|
||||
CGO_LDFLAGS:append = " -no-pie"
|
||||
|
||||
export GO_LDSO = "${@get_linuxloader(d)}"
|
||||
export CC_FOR_TARGET = "gcc"
|
||||
|
||||
Reference in New Issue
Block a user