diff options
author | Jose Quaresma <quaresma.jose@gmail.com> | 2024-02-28 18:30:07 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-03-03 16:28:20 +0000 |
commit | fd2e5e0b89d9c69acc9f813f07cd052630596ad5 (patch) | |
tree | 3bb311534cb14ad212e6cfa976c653512d5c7d12 /meta/classes-recipe | |
parent | ed39f516e975062736d0b7a0945baa6db97297e7 (diff) | |
download | poky-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.bbclass | 14 |
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 |
40 | GO_DYNLINK = "" | 40 | GO_DYNLINK = "" |
41 | GO_DYNLINK:arm ?= "1" | 41 | GO_DYNLINK:arm = "" |
42 | GO_DYNLINK:aarch64 ?= "1" | 42 | GO_DYNLINK:aarch64 = "" |
43 | GO_DYNLINK:x86 ?= "1" | 43 | GO_DYNLINK:x86 = "" |
44 | GO_DYNLINK:x86-64 ?= "1" | 44 | GO_DYNLINK:x86-64 = "" |
45 | GO_DYNLINK:powerpc64 ?= "1" | 45 | GO_DYNLINK:powerpc64 = "" |
46 | GO_DYNLINK:powerpc64le ?= "1" | 46 | GO_DYNLINK:powerpc64le = "" |
47 | GO_DYNLINK:class-native ?= "" | 47 | GO_DYNLINK:class-native = "" |
48 | GO_DYNLINK:class-nativesdk = "" | 48 | GO_DYNLINK:class-nativesdk = "" |
49 | 49 | ||
50 | # define here because everybody inherits this class | 50 | # define here because everybody inherits this class |