diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-07-24 16:43:47 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-07-24 21:59:25 +0200 |
commit | 9101ce5800cce377a59d82f90ce1d2ba58674d4e (patch) | |
tree | 2ae413913153fc95b6a51a87b0afa4d71f4eb8a1 | |
parent | 80634e30615e276481f30127659106031712b428 (diff) | |
download | buildroot-9101ce5800cce377a59d82f90ce1d2ba58674d4e.tar.gz buildroot-9101ce5800cce377a59d82f90ce1d2ba58674d4e.zip |
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>
-rw-r--r-- | package/runc/runc.mk | 7 |
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 |