From: Thomas Petazzoni Date: Sun, 24 Jul 2016 14:43:47 +0000 (+0200) Subject: runc: pass -extldflags '-static' on when BR2_STATIC_LIBS=y X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9101ce5800cce377a59d82f90ce1d2ba58674d4e;p=buildroot.git runc: 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 --- diff --git a/package/runc/runc.mk b/package/runc/runc.mk index 1396e0c7a2..7ebba5702b 100644 --- a/package/runc/runc.mk +++ b/package/runc/runc.mk @@ -19,8 +19,11 @@ RUNC_MAKE_ENV = $(HOST_GO_TARGET_ENV) \ PATH=$(BR_PATH) RUNC_GLDFLAGS = \ - -X main.gitCommit=$(RUNC_VERSION) \ - -extldflags '-static' + -X main.gitCommit=$(RUNC_VERSION) + +ifeq ($(BR2_STATIC_LIBS),y) +FLANNEL_GLDFLAGS += -extldflags '-static' +endif RUNC_GOTAGS = cgo static_build