build-without-openssl: compile statically

$ ldd gocryptfs
not a dynamic executable
$ file gocryptfs
gocryptfs: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped
This commit is contained in:
Jakob Unterwurzacher 2016-12-06 22:44:58 +01:00
parent 9b57384574
commit 6c86afb5cd
2 changed files with 2 additions and 1 deletions

View File

@ -4,4 +4,5 @@ set -eu
cd "$(dirname "$0")"
export CGO_ENABLED=0
exec ./build.bash -tags without_openssl

View File

@ -47,7 +47,7 @@ else
# Go 1.5 wants an "=" here
go build -ldflags="-X main.GitVersion=$GITVERSION -X main.GitVersionFuse=$GITVERSIONFUSE -X main.BuildTime=$BUILDTIME" $@
fi
(cd gocryptfs-xray; go build)
(cd gocryptfs-xray; go build $@)
./gocryptfs -version