Skip to content

Commit

Permalink
script/lib.sh: set GOARM=5 for armel, GOARM=6 for armhf
Browse files Browse the repository at this point in the history
https://github.com/golang/go/wiki/GoArm#supported-operating-systems

> ARM on Linux. You must run an EABI kernel.
> These are generally known as armel for softfloat (compatible with ARMv5)
> or armhf for hardware floating point (ARMv6 and above).

Prior to this commit, the script was setting GOARM=6 for armel,
GOARM=7 for armhf.

Fix issue 4033

Signed-off-by: Akihiro Suda <[email protected]>
  • Loading branch information
AkihiroSuda committed Sep 26, 2023
1 parent 1a8b558 commit 42c0601
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ function set_cross_vars() {
armel)
HOST=arm-${PLATFORM}eabi
GOARCH=arm
GOARM=6
GOARM=5
;;
armhf)
HOST=arm-${PLATFORM}eabihf
GOARCH=arm
GOARM=7
GOARM=6
;;
ppc64le)
HOST=powerpc64le-${PLATFORM}
Expand Down

0 comments on commit 42c0601

Please sign in to comment.