summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/runc/runc.mk7
1 files changed, 5 insertions, 2 deletions
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
OpenPOWER on IntegriCloud