1.In BUILDCONFIG.gn file,the following variables are defined:
boringssl_shared_library_name = "libboringssl.so"
if (target_cpu == "x64") {
boringssl_shared_library_stored_path = rebase_path("//third_party/libs/boringssl/linux/")
} else {
use_boringssl_library_server = false
}
2.In BUILD.gn file, I used libs
libs += [ boringssl_shared_library_stored_path + boringssl_shared_library_name ]
3.The generated .so file does not contain libboringssl.so
0x0000000000000001 (NEEDED) Shared library: [libdl.so.2]
0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0]
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x0000000000000001 (NEEDED) Shared library: [ld-linux-x86-64.so.2]
0x000000000000000e (SONAME) Library soname: [libhquic.so]