summaryrefslogtreecommitdiffstats
path: root/recipes-containers/containerd
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linaro.org>2017-10-06 12:25:48 -0500
committerBruce Ashfield <bruce.ashfield@windriver.com>2017-10-09 12:38:45 -0400
commit89a1121656aaf04966b79756c6967f7a5ada02d5 (patch)
tree90e57af714b5fceade25df16e8a989eaac3c4584 /recipes-containers/containerd
parent1f99ba19c8e54b11b77748db890c0b72eae86ba9 (diff)
downloadmeta-virtualization-89a1121656aaf04966b79756c6967f7a5ada02d5.tar.gz
docker/containerd: Export GOARCH to fix build in arm64
If the GOARCH isn't set CGO took the ARCH from the host and tries to use -m64 flag that isn't available in aarch64 compiler. ... | # github.com/opencontainers/runc/libcontainer/system | aarch64-linaro-linux-gcc: error: unrecognized command line option '-m64' | # github.com/containerd/console | aarch64-linaro-linux-gcc: error: unrecognized command line option '-m64' | Makefile:60: recipe for target 'shim-static' failed ... Signed-off-by: Aníbal Limón <anibal.limon@linaro.org> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-containers/containerd')
-rw-r--r--recipes-containers/containerd/containerd.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-containers/containerd/containerd.inc b/recipes-containers/containerd/containerd.inc
index 18d9188e..e7a37192 100644
--- a/recipes-containers/containerd/containerd.inc
+++ b/recipes-containers/containerd/containerd.inc
@@ -38,6 +38,7 @@ do_compile() {
38 38
39 # Pass the needed cflags/ldflags so that cgo 39 # Pass the needed cflags/ldflags so that cgo
40 # can find the needed headers files and libraries 40 # can find the needed headers files and libraries
41 export GOARCH="${TARGET_GOARCH}"
41 export CGO_ENABLED="1" 42 export CGO_ENABLED="1"
42 export CFLAGS="" 43 export CFLAGS=""
43 export LDFLAGS="" 44 export LDFLAGS=""