Hello,
As you can see, boringssl's libcrypto.a and libssl.a are in two separate directories, as shown below:
root@VM-8-12-debian ~/boringssl/build # ls
bssl CMakeCache.txt cmake_install.cmake crypto_test decrepit embed_test_data_args.txt libpki.a pki_test ssl_test urandom_test
build.ninja CMakeFiles crypto crypto_test_data.cc decrepit_test libboringssl_gtest.a libtest_support_lib.a ssl tool util
root@VM-8-12-debian ~/boringssl/build # cd crypto
root@VM-8-12-debian ~/boringssl/build/crypto # ls
chacha cipher_extra CMakeFiles cmake_install.cmake crypto_test err_data.c fipsmodule libcrypto.a test urandom_test
root@VM-8-12-debian ~/boringssl/build/crypto # cd ..
root@VM-8-12-debian ~/boringssl/build # cd ssl
root@VM-8-12-debian ~/boringssl/build/ssl # ls
CMakeFiles cmake_install.cmake libssl.a ssl_test test
I tried using absolute paths and adding -Wl,-rpath=/root/boringssl/build/ssl -Wl,-rpath=/root/boringssl/build/crypto -Wl,--enable-new-dtags but this Doesn't play any role.
--
Best Regards,
Jinze Yang