From 42c840ae41b691c8ef387c59ea3ae0cefeaa8308 Mon Sep 17 00:00:00 2001 From: Shiming Zhang Date: Tue, 18 Jan 2022 11:00:06 +0800 Subject: [PATCH] Fix arm64 build --- hack/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/build.sh b/hack/build.sh index 616f38f..498fddc 100755 --- a/hack/build.sh +++ b/hack/build.sh @@ -29,7 +29,7 @@ for platform in ${BUILD_PLATFORMS[*]}; do docker run --rm -v $(pwd):/go/src/github.com/opencontainers/runc -w /go/src/github.com/opencontainers/runc golang:1.17 \ /bin/bash -c " apt-get update && apt-get install libseccomp-dev - GO111MODULE=auto GOOS=${os} GOARCH=${arch} make BUILDTAGS='${BUILDTAGS}' runc && \ + GO111MODULE=auto GOOS=${os} GOARCH=${arch} CGO_ENABLED=1 make BUILDTAGS='${BUILDTAGS}' runc && \ mv runc _output/${os}/${arch}/runc/ || : " || echo "fail ${platform}"