2568518992
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.
18 lines
304 B
Bash
Executable File
18 lines
304 B
Bash
Executable File
#!/bin/bash -eu
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
B="go build -tags without_openssl"
|
|
|
|
set -x
|
|
|
|
# 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.
|
|
rm gocryptfs
|