Skip to content

Commit d81de52

Browse files
committed
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 moby#43474 Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
1 parent 09c88e8 commit d81de52

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

hack/make/.binary

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ source "${MAKEDIR}/.go-autogen"
1818

1919
case "$(go env GOOS)/$(go env GOARCH)" in
2020
linux/arm)
21-
case "${GOARM}" in
21+
# specify name of the target ARM architecture for cross-compilation
22+
case "$(go env GOARM)" in
2223
5)
2324
export CGO_CFLAGS="-march=armv5t"
2425
export CGO_CXXFLAGS="-march=armv5t"

0 commit comments

Comments
 (0)