From 80634e30615e276481f30127659106031712b428 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sun, 24 Jul 2016 16:43:46 +0200 Subject: [PATCH] flannel: pass -extldflags '-static' on when BR2_STATIC_LIBS=y There is no reason to link Go binaries statically, unless when BR2_STATIC_LIBS=y. Signed-off-by: Thomas Petazzoni Tested-by: Christian Stewart Signed-off-by: Thomas Petazzoni --- package/flannel/flannel.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package/flannel/flannel.mk b/package/flannel/flannel.mk index b5f61a01b9..18c0af1605 100644 --- a/package/flannel/flannel.mk +++ b/package/flannel/flannel.mk @@ -21,7 +21,10 @@ FLANNEL_MAKE_ENV = \ FLANNEL_GLDFLAGS = \ -X github.com/coreos/flannel/version.Version=$(FLANNEL_VERSION) \ - -extldflags '-static' + +ifeq ($(BR2_STATIC_LIBS),y) +FLANNEL_GLDFLAGS += -extldflags '-static' +endif define FLANNEL_CONFIGURE_CMDS # Put sources at prescribed GOPATH location. -- 2.30.2