From: Oliver Kranz Date: Thu, 19 Aug 2021 09:22:00 +0000 (+0200) Subject: Allow global override of golang GO_DYNLINK X-Git-Tag: uninative-3.4~137 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=2a7f5843c4ad2a3bd44bf9c262aacab2931b5677;p=openembedded-core.git 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 Signed-off-by: Richard Purdie --- 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