summaryrefslogtreecommitdiff
path: root/build-without-openssl.bash
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-04-18 16:55:41 +0200
committerJakob Unterwurzacher2020-04-18 17:09:25 +0200
commit5da5e9fdf2db0f3c709a6662604d768865462068 (patch)
tree6c70447704e0d27e39956bc7a8cfd419d4405eb8 /build-without-openssl.bash
parentf6b1c680b3f7c7d5cd842cca3117f5ee2f0f2fad (diff)
build.bash: don't enable -buildmode=pie for static builds
Causes warnings: $ ./build-without-openssl.bash # github.com/rfjakob/gocryptfs loadinternal: cannot find runtime/cgo # github.com/rfjakob/gocryptfs/gocryptfs-xray loadinternal: cannot find runtime/cgo # github.com/rfjakob/gocryptfs/contrib/statfs loadinternal: cannot find runtime/cgo gocryptfs v1.7.1-48-gf6b1c68 without_openssl; go-fuse v1.0.1-0.20190319092520-161a16484456; 2020-04-18 go1.13.6 linux/amd64 https://github.com/golang/go/issues/30986
Diffstat (limited to 'build-without-openssl.bash')
-rwxr-xr-xbuild-without-openssl.bash5
1 files changed, 5 insertions, 0 deletions
diff --git a/build-without-openssl.bash b/build-without-openssl.bash
index e965951..f450caf 100755
--- a/build-without-openssl.bash
+++ b/build-without-openssl.bash
@@ -3,3 +3,8 @@
cd "$(dirname "$0")"
CGO_ENABLED=0 source ./build.bash -tags without_openssl
+
+if ldd gocryptfs > /dev/null ; then
+ echo "build-without-openssl.bash: error: compiled binary is not static"
+ exit 1
+fi