summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe
diff options
context:
space:
mode:
authorJose Quaresma <quaresma.jose@gmail.com>2024-02-28 18:30:07 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-03-03 16:28:20 +0000
commitfd2e5e0b89d9c69acc9f813f07cd052630596ad5 (patch)
tree3bb311534cb14ad212e6cfa976c653512d5c7d12 /meta/classes-recipe
parented39f516e975062736d0b7a0945baa6db97297e7 (diff)
downloadpoky-fd2e5e0b89d9c69acc9f813f07cd052630596ad5.tar.gz
goarch: disable dynamic linking globally
With go-1.21 dynamic linking cause a runtime panic: | root@qemux86-64:~# go-helloworld | panic: runtime error: index out of range [0] with length 0 | | goroutine 1 [running]: | flag.init() | /usr/lib/go/src/flag/flag.go:1199 +0xf9 In my opinion, this would be a good trade-off so that we can update and leave the version 1.20 for the next LTS 5.0 since we are already quite behind on the version available upstream which already has the 1.22 available. (From OE-Core rev: 827c60b79e7fcafd14e68870f6b69dcc48ac9c39) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe')
-rw-r--r--meta/classes-recipe/goarch.bbclass14
1 files changed, 7 insertions, 7 deletions
diff --git a/meta/classes-recipe/goarch.bbclass b/meta/classes-recipe/goarch.bbclass
index 1ebe03864f..6899ec28e4 100644
--- a/meta/classes-recipe/goarch.bbclass
+++ b/meta/classes-recipe/goarch.bbclass
@@ -38,13 +38,13 @@ BASE_GOARM:armv5 = '5'
38# Go supports dynamic linking on a limited set of architectures. 38# Go supports dynamic linking on a limited set of architectures.
39# See the supportsDynlink function in go/src/cmd/compile/internal/gc/main.go 39# See the supportsDynlink function in go/src/cmd/compile/internal/gc/main.go
40GO_DYNLINK = "" 40GO_DYNLINK = ""
41GO_DYNLINK:arm ?= "1" 41GO_DYNLINK:arm = ""
42GO_DYNLINK:aarch64 ?= "1" 42GO_DYNLINK:aarch64 = ""
43GO_DYNLINK:x86 ?= "1" 43GO_DYNLINK:x86 = ""
44GO_DYNLINK:x86-64 ?= "1" 44GO_DYNLINK:x86-64 = ""
45GO_DYNLINK:powerpc64 ?= "1" 45GO_DYNLINK:powerpc64 = ""
46GO_DYNLINK:powerpc64le ?= "1" 46GO_DYNLINK:powerpc64le = ""
47GO_DYNLINK:class-native ?= "" 47GO_DYNLINK:class-native = ""
48GO_DYNLINK:class-nativesdk = "" 48GO_DYNLINK:class-nativesdk = ""
49 49
50# define here because everybody inherits this class 50# define here because everybody inherits this class