From 7dfe8c19e91385469e279fd2ef1cb2dfd45c8968 Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Thu, 12 May 2016 00:08:46 +0000 Subject: [PATCH] package/go-bootstrap: Set CGO_ENABLED=0 Fixes build erorros like these: cgo.a(_all.o): unknown relocation type 42; compiled without -fpic? Signed-off-by: Geoff Levand Signed-off-by: Thomas Petazzoni --- package/go-bootstrap/go-bootstrap.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/go-bootstrap/go-bootstrap.mk b/package/go-bootstrap/go-bootstrap.mk index fd23628941..47f5013232 100644 --- a/package/go-bootstrap/go-bootstrap.mk +++ b/package/go-bootstrap/go-bootstrap.mk @@ -23,7 +23,8 @@ HOST_GO_BOOTSTRAP_MAKE_ENV = \ GOOS=linux \ GOROOT_FINAL="$(HOST_GO_BOOTSTRAP_ROOT)" \ GOROOT="$(@D)" \ - GOBIN="$(@D)/bin" + GOBIN="$(@D)/bin" \ + CGO_ENABLED=0 define HOST_GO_BOOTSTRAP_BUILD_CMDS cd $(@D)/src && $(HOST_GO_BOOTSTRAP_MAKE_ENV) ./make.bash -- 2.30.2