Skip to content

Commit

Permalink
hack: name for target ARM architecture not specified
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
crazy-max committed Jan 16, 2023
1 parent 09c88e8 commit d81de52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hack/make/.binary
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d81de52

Please sign in to comment.