From: Khem Raj Date: Wed, 24 May 2023 22:59:48 +0000 (-0700) Subject: go: Use -no-pie to build target cgo X-Git-Tag: uninative-3.10~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a27d39aebd5966ffffb57c20518381cb06ba8373;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git 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] Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/go/go_1.20.4.bb b/meta/recipes-devtools/go/go_1.20.4.bb index 587ee55944c..46f5fbc6be9 100644 --- a/meta/recipes-devtools/go/go_1.20.4.bb +++ b/meta/recipes-devtools/go/go_1.20.4.bb @@ -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"