libgocryptfs/crossbuild.bash
Jakob Unterwurzacher a4563e21ec 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.
2017-06-18 15:43:22 +02:00

13 lines
234 B
Bash
Executable File

#!/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