mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 13:49:49 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
b001ac2f30
commit
a3c1be72af
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user