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 <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
98cc1cbeb6
commit
80634e3061
@ -21,7 +21,10 @@ FLANNEL_MAKE_ENV = \
|
|||||||
|
|
||||||
FLANNEL_GLDFLAGS = \
|
FLANNEL_GLDFLAGS = \
|
||||||
-X github.com/coreos/flannel/version.Version=$(FLANNEL_VERSION) \
|
-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
|
define FLANNEL_CONFIGURE_CMDS
|
||||||
# Put sources at prescribed GOPATH location.
|
# Put sources at prescribed GOPATH location.
|
||||||
|
Loading…
Reference in New Issue
Block a user