summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-02-29 21:51:34 +0100
committerJakob Unterwurzacher2020-02-29 21:52:59 +0100
commit256851899269b779e216d8fd1d0534224d87895e (patch)
treed640bc7880f63cf07d7d715feafffa25d9b3a1a5
parentf82b9caa9c8bcbfc814f14a30f3cf70af8154187 (diff)
crossbuild.bash: set GOARM=7
From https://github.com/golang/go/wiki/GoArm : 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.
-rwxr-xr-xcrossbuild.bash5
1 files changed, 4 insertions, 1 deletions
diff --git a/crossbuild.bash b/crossbuild.bash
index 0f867d4..12671fe 100755
--- a/crossbuild.bash
+++ b/crossbuild.bash
@@ -6,8 +6,11 @@ B="go build -tags without_openssl"
set -x
-GOOS=linux GOARCH=arm $B
+# See https://github.com/golang/go/wiki/GoArm
+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.