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:52:59 +0100 |
commit | 2a7f5843c4ad2a3bd44bf9c262aacab2931b5677 (patch) | |
tree | 4e206a5ced518d2d178d4291b2d8989a7853a2ca /meta | |
parent | 466c1c674e3da1fdbe1eae1cd90637d79a1500f5 (diff) | |
download | openembedded-core-contrib-2a7f5843c4ad2a3bd44bf9c262aacab2931b5677.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 =.
Signed-off-by: Oliver Kranz <o.kranz.88@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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' # Go supports dynamic linking on a limited set of architectures. # See the supportsDynlink function in go/src/cmd/compile/internal/gc/main.go GO_DYNLINK = "" -GO_DYNLINK:arm = "1" -GO_DYNLINK:aarch64 = "1" -GO_DYNLINK:x86 = "1" -GO_DYNLINK:x86-64 = "1" -GO_DYNLINK:powerpc64 = "1" -GO_DYNLINK:powerpc64le = "1" -GO_DYNLINK:class-native = "" +GO_DYNLINK:arm ?= "1" +GO_DYNLINK:aarch64 ?= "1" +GO_DYNLINK:x86 ?= "1" +GO_DYNLINK:x86-64 ?= "1" +GO_DYNLINK:powerpc64 ?= "1" +GO_DYNLINK:powerpc64le ?= "1" +GO_DYNLINK:class-native ?= "" GO_DYNLINK:class-nativesdk = "" # define here because everybody inherits this class |