From d81de522fd504579d73a4c1506a75b9957b7e51f Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Mon, 16 Jan 2023 10:59:41 +0100 Subject: [PATCH] hack: name for target ARM architecture not specified Builds currently doesn't set the right name for target ARM architecture through switches in CGO_CFLAGS and CGO_CXXFLAGS when doing cross-compilation. This was previously fixed in https://github.com/moby/moby/pull/43474 Signed-off-by: CrazyMax --- hack/make/.binary | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hack/make/.binary b/hack/make/.binary index 4698020ec2897..58cdb6915ebec 100644 --- a/hack/make/.binary +++ b/hack/make/.binary @@ -18,7 +18,8 @@ source "${MAKEDIR}/.go-autogen" case "$(go env GOOS)/$(go env GOARCH)" in linux/arm) - case "${GOARM}" in + # specify name of the target ARM architecture for cross-compilation + case "$(go env GOARM)" in 5) export CGO_CFLAGS="-march=armv5t" export CGO_CXXFLAGS="-march=armv5t"