aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2025-06-15 21:09:37 +0200
committerJakob Unterwurzacher2025-06-15 21:09:37 +0200
commit8f37c3bfe26876df449495bdf4dcedf6dd0b6859 (patch)
tree7cbdcd09a9bb5f755e3728a75aa1f64a5e1508a2
parent4ef2678917ddc26ab8e5f64a3158720da6e0a5d1 (diff)
build-without-openssl.bash: drop ldd checkHEADmaster
Apparently, the check does not work on some distributions, notably Ubuntu 24.04. On Ubuntu 24.04, ldd exits with 0 (success) even when run against a static binary. Even "ld.so --verify" returns 0, and "file" output is indistinguishable for static and dynamic builds. We could go for objdump or readelf, but this is not installed per default. Just drop the check. By now, I trust that CGO_ENABLED=0 will always build a static binary. Fixes https://github.com/rfjakob/gocryptfs/issues/926
-rwxr-xr-xbuild-without-openssl.bash5
1 files changed, 0 insertions, 5 deletions
diff --git a/build-without-openssl.bash b/build-without-openssl.bash
index d5dc218..e965951 100755
--- a/build-without-openssl.bash
+++ b/build-without-openssl.bash
@@ -3,8 +3,3 @@
cd "$(dirname "$0")"
CGO_ENABLED=0 source ./build.bash -tags without_openssl
-
-if ldd gocryptfs 2> /dev/null ; then
- echo "build-without-openssl.bash: error: compiled binary is not static"
- exit 1
-fi