From 8f37c3bfe26876df449495bdf4dcedf6dd0b6859 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 15 Jun 2025 21:09:37 +0200 Subject: build-without-openssl.bash: drop ldd check 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 --- build-without-openssl.bash | 5 ----- 1 file changed, 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 -- cgit v1.2.3