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.
This commit is contained in:
Assam Boudjelthia
2023-06-19 21:38:19 +03:00
committed by Assam Boudjelthia
parent 5b9a936349
commit 3df6b5f37c
+5 -3
View File
@@ -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