Re: [OE-core] [PATCH] goarch.bbclass: Disable GO_DYNLINK by default

2021-08-21 Thread Oliver Kranz
by GO_LINKSHARED) to respect the licensing part here. On 21.08.21 22:09, Oliver Kranz wrote: Static linking has the following benefits:   - go-md2man (-> podman) compiles   - imagesize reduces, combined linking overhead needs to be > 37643776 (go-runtime) for dynamic linking to be bene

[OE-core] [PATCH] goarch.bbclass: Disable GO_DYNLINK by default

2021-08-21 Thread Oliver Kranz
ker-ce, k3s, skopeo are ignoring the flag anyways. Signed-off-by: Oliver Kranz --- meta/classes/goarch.bbclass | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass index 92fec16b82..6e9128e44a 100644 --- a/meta/c

Re: [OE-core] [PATCH] Allow global override of golang GO_DYNLINK

2021-08-19 Thread Oliver Kranz
On 20.08.21 02:01, Khem Raj wrote: On Thu, Aug 19, 2021 at 2:22 AM Oliver Kranz wrote: 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

[OE-core] [PATCH] Allow global override of golang GO_DYNLINK

2021-08-19 Thread Oliver Kranz
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 --- meta/classes/goarch.bbclass | 14 +++--- 1