From a4563e21ecaf7d2acce64212c96de69707d6f0bb Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 18 Jun 2017 15:40:38 +0200 Subject: 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. --- crossbuild.bash | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 crossbuild.bash (limited to 'crossbuild.bash') 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 -- cgit v1.2.3