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 <thomas.petazzoni@free-electrons.com> Tested-by: Christian Stewart <christian@paral.in> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
80634e3061
commit
9101ce5800
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user