'what are bazel cc_library SONAME rules?
I use bazel to build a so library using cc_library, and then use cc_binary to deps on it.
but seems bazel change the name of the so library.
below is an example by readelf -d bazel-bin/cyber/mainboard
0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6]
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
0x0000000000000001 (NEEDED) Shared library: [libcyber_Slibcyber_Ucore.so]
0x0000000000000001 (NEEDED) Shared library: [libcyber_Sclass_Uloader_Slibclass_Uloader_Umanager.so]
0x0000000000000001 (NEEDED) Shared library: [libcyber_Scomponent_Slibtimer_Ucomponent.so]
0x0000000000000001 (NEEDED) Shared library: [libcyber_Sclass_Uloader_Slibclass_Uloader.so]
0x0000000000000001 (NEEDED) Shared library: [libcyber_Slibinit.so]
0x0000000000000001 (NEEDED) Shared library: [libcyber_Sproto_Slibclock_Uproto.so]
Because I want to export the software and package it as a DEB file, I need more general library files. So my question is how can I change the so library name libcyber_Slibcyber_Ucore.so to libcyber_cyber_core.so? Why bazel use such SONAME rule?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
