From 3df6b5f37c6d26e9abeeefcf5ded2db9dbaf20b2 Mon Sep 17 00:00:00 2001 From: Assam Boudjelthia Date: Mon, 12 Jun 2023 12:26:43 +0300 Subject: [PATCH] Fix patchelf operations for OpenSSL 3.x The previous refactoring commit 841f289 changed that command by prepending relative path to the libs files, and that seem to break what we try to achieve with patchelf. This reverts that part. --- build_ssl.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build_ssl.sh b/build_ssl.sh index 6519f5b..b0e7793 100755 --- a/build_ssl.sh +++ b/build_ssl.sh @@ -109,9 +109,11 @@ build_ssl_3() { cp libcrypto.so "${out_path}/libcrypto_3.so" || exit 1 cp libssl.so "${out_path}/libssl_3.so" || exit 1 - patchelf --set-soname "${out_path}/libcrypto_3.so" "${out_path}/libcrypto_3.so" || exit 1 - patchelf --set-soname "${out_path}/libssl_3.so" "${out_path}/libssl_3.so" || exit 1 - patchelf --replace-needed "${out_path}/libcrypto.so" "${out_path}/libcrypto_3.so" "${out_path}/libssl_3.so" || exit 1 + pushd ${out_path} || exit 1 + patchelf --set-soname libcrypto_3.so libcrypto_3.so || exit 1 + patchelf --set-soname libssl_3.so libssl_3.so || exit 1 + patchelf --replace-needed libcrypto.so libcrypto_3.so libssl_3.so || exit 1 + popd } for param in "${params[@]}"; do