diff options
author | Jakob Unterwurzacher | 2017-06-18 15:40:38 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2017-06-18 15:43:22 +0200 |
commit | a4563e21ecaf7d2acce64212c96de69707d6f0bb (patch) | |
tree | 433f9917fdd734f7a06ae854f0713847aaa79f0c /crossbuild.bash | |
parent | afc3a8252bacbe15a0815e348aea7071447d7d87 (diff) |
main, syscallcompat: use Dup3 instead of Dup2
Dup2 is not implemented on linux/arm64.
Fixes https://github.com/rfjakob/gocryptfs/issues/121 .
Also adds cross-compilation to CI.
Diffstat (limited to 'crossbuild.bash')
-rwxr-xr-x | crossbuild.bash | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/crossbuild.bash b/crossbuild.bash new file mode 100755 index 0000000..a33cb05 --- /dev/null +++ b/crossbuild.bash @@ -0,0 +1,12 @@ +#!/bin/bash -eux + +cd "$(dirname "$0")" + +B="go build -tags without_openssl" + +GOOS=linux GOARCH=arm $B +GOOS=linux GOARCH=arm64 $B +GOOS=darwin GOARCH=amd64 $B + +# The cross-built binary is not useful on the compile host. +rm gocryptfs |