crossbuild.bash: set GOARM=7

From :

  In cross compilation situations, it is recommended
  that you always set an appropriate GOARM value
  along with GOARCH.

The value seems to default to GOARM=5 if not set
during cross-compilation.
This commit is contained in:
Jakob Unterwurzacher 2020-02-29 21:51:34 +01:00
parent f82b9caa9c
commit 2568518992
1 changed files with 4 additions and 1 deletions

View File

@ -6,8 +6,11 @@ B="go build -tags without_openssl"
set -x
GOOS=linux GOARCH=arm $B
# See
GOOS=linux GOARCH=arm GOARM=7 $B
GOOS=linux GOARCH=arm64 $B
# MacOS
GOOS=darwin GOARCH=amd64 $B
# The cross-built binary is not useful on the compile host.