summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Kranz <o.kranz.88@gmail.com>2021-08-19 11:22:00 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-20 08:53:03 +0100
commita3c1be72af66ba8dd1b1393f10dd1c13c7cb9509 (patch)
treea51110194fe9fd96c1e144be75928b4d22736046
parentb001ac2f30d14987e881faa9007cec08b26c1e3d (diff)
downloadpoky-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.bbclass14
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
34GO_DYNLINK = "" 34GO_DYNLINK = ""
35GO_DYNLINK:arm = "1" 35GO_DYNLINK:arm ?= "1"
36GO_DYNLINK:aarch64 = "1" 36GO_DYNLINK:aarch64 ?= "1"
37GO_DYNLINK:x86 = "1" 37GO_DYNLINK:x86 ?= "1"
38GO_DYNLINK:x86-64 = "1" 38GO_DYNLINK:x86-64 ?= "1"
39GO_DYNLINK:powerpc64 = "1" 39GO_DYNLINK:powerpc64 ?= "1"
40GO_DYNLINK:powerpc64le = "1" 40GO_DYNLINK:powerpc64le ?= "1"
41GO_DYNLINK:class-native = "" 41GO_DYNLINK:class-native ?= ""
42GO_DYNLINK:class-nativesdk = "" 42GO_DYNLINK:class-nativesdk = ""
43 43
44# define here because everybody inherits this class 44# define here because everybody inherits this class