diff options
author | Oliver Kranz <o.kranz.88@gmail.com> | 2021-08-19 11:22:00 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-20 08:53:03 +0100 |
commit | a3c1be72af66ba8dd1b1393f10dd1c13c7cb9509 (patch) | |
tree | a51110194fe9fd96c1e144be75928b4d22736046 | |
parent | b001ac2f30d14987e881faa9007cec08b26c1e3d (diff) | |
download | poky-a3c1be72af66ba8dd1b1393f10dd1c13c7cb9509.tar.gz |
Allow global override of golang GO_DYNLINK
Small golang applications create massive memory overhead if go-runtime
is deployed. So it is helpfull to be able to disable the GO_DYNLINK
option on a per distro/local.conf basis by making it a ?= instead of =.
(From OE-Core rev: 2a7f5843c4ad2a3bd44bf9c262aacab2931b5677)
Signed-off-by: Oliver Kranz <o.kranz.88@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/goarch.bbclass | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass index 48dc48dabf..92fec16b82 100644 --- a/meta/classes/goarch.bbclass +++ b/meta/classes/goarch.bbclass | |||
@@ -32,13 +32,13 @@ BASE_GOARM:armv5 = '5' | |||
32 | # Go supports dynamic linking on a limited set of architectures. | 32 | # Go supports dynamic linking on a limited set of architectures. |
33 | # See the supportsDynlink function in go/src/cmd/compile/internal/gc/main.go | 33 | # See the supportsDynlink function in go/src/cmd/compile/internal/gc/main.go |
34 | GO_DYNLINK = "" | 34 | GO_DYNLINK = "" |
35 | GO_DYNLINK:arm = "1" | 35 | GO_DYNLINK:arm ?= "1" |
36 | GO_DYNLINK:aarch64 = "1" | 36 | GO_DYNLINK:aarch64 ?= "1" |
37 | GO_DYNLINK:x86 = "1" | 37 | GO_DYNLINK:x86 ?= "1" |
38 | GO_DYNLINK:x86-64 = "1" | 38 | GO_DYNLINK:x86-64 ?= "1" |
39 | GO_DYNLINK:powerpc64 = "1" | 39 | GO_DYNLINK:powerpc64 ?= "1" |
40 | GO_DYNLINK:powerpc64le = "1" | 40 | GO_DYNLINK:powerpc64le ?= "1" |
41 | GO_DYNLINK:class-native = "" | 41 | GO_DYNLINK:class-native ?= "" |
42 | GO_DYNLINK:class-nativesdk = "" | 42 | GO_DYNLINK:class-nativesdk = "" |
43 | 43 | ||
44 | # define here because everybody inherits this class | 44 | # define here because everybody inherits this class |