Skip to content

Commit

Permalink
Fix symlinks in the build script
Browse files Browse the repository at this point in the history
These symlinks were created by the script before this patch:

root@4923c457fa27:~/android_openssl/ssl_3/arm64-v8a# tree
.
├── include -> ../ssl_3/include
├── libcrypto.a
├── libcrypto.so -> ../ssl_3/arm64-v8a/libcrypto_3.so
├── libcrypto_3.so
├── libssl.a
├── libssl.so -> ../ssl_3/arm64-v8a/libssl_3.so
└── libssl_3.so

After the fix, this is the result:

root@4923c457fa27:~/android_openssl/ssl_3/arm64-v8a# tree
.
├── include -> ../../ssl_3/include
├── libcrypto.a
├── libcrypto.so -> libcrypto_3.so
├── libcrypto_3.so
├── libssl.a
├── libssl.so -> libssl_3.so
└── libssl_3.so
  • Loading branch information
carlonluca committed Aug 11, 2024
1 parent 57056d6 commit 5baecee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build_ssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ build_ssl_1_1() {
llvm-strip --strip-all libssl_1_1.so
cp libcrypto_1_1.so libssl_1_1.so "../$version_out_dir/$qt_arch" || exit 1
cp libcrypto.a libssl.a "../$version_out_dir/$qt_arch" || exit 1
ln -s "../$version_out_dir/$qt_arch/libcrypto_1_1.so" "../$version_out_dir/$qt_arch/libcrypto.so"
ln -s "../$version_out_dir/$qt_arch/libssl_1_1.so" "../$version_out_dir/$qt_arch/libssl.so"
ln -s "../$version_out_dir/include" "../$version_out_dir/$qt_arch/include"
ln -s "libcrypto_1_1.so" "../$version_out_dir/$qt_arch/libcrypto.so"
ln -s "libssl_1_1.so" "../$version_out_dir/$qt_arch/libssl.so"
ln -s "../../$version_out_dir/include" "../$version_out_dir/$qt_arch/include"
}

build_ssl_3() {
Expand All @@ -117,9 +117,9 @@ build_ssl_3() {
cp libcrypto.a libssl.a "${out_path}" || exit 1
cp libcrypto.so "${out_path}/libcrypto_3.so" || exit 1
cp libssl.so "${out_path}/libssl_3.so" || exit 1
ln -s "${out_path}/libcrypto_3.so" "${out_path}/libcrypto.so"
ln -s "${out_path}/libssl_3.so" "${out_path}/libssl.so"
ln -s "../$version_out_dir/include" "../$version_out_dir/$qt_arch/include"
ln -s "libcrypto_3.so" "${out_path}/libcrypto.so"
ln -s "libssl_3.so" "${out_path}/libssl.so"
ln -s "../../$version_out_dir/include" "../$version_out_dir/$qt_arch/include"

pushd ${out_path} || exit 1
patchelf --set-soname libcrypto_3.so libcrypto_3.so || exit 1
Expand Down

0 comments on commit 5baecee

Please sign in to comment.