You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[feature request] Support cc_import of .so with soname #7059
At the moment cc_import supports linking to a shared library like libmylib.so. However, it does not support .so with soname, e.g., libmylib.so.2. It would be good to support .so with soname.
Feature requests: what underlying problem are you trying to solve with this feature?
In linux .so with soname is very common so to expand the usage of cc_import to soname would be ideal.
I ran into this as well, however, I was using provided_by_system=True, which means I'm limited to interface_library. That field doesn't allow for a version to be specified.
Ran into this trying to provide a solution for nvidia-encode.so. The nvidia docker runtime doesn't create the link from nvidia-encode.so to nvidia-encode.so.1. As a result, there doesn't seem to be a great way to specify this in a way that bazel uses the system library when running tests, for example.
Let me know if this should be brought up as a separate issue (or should be considered an issue).
I am in a similar problem and don't understand why interface_library shouldn't be able to take versioned .so files. It seems impossible to otherwise specify that libfoo.so.21 should not end up as a runfile.
Activity
c-mita commentedon Nov 23, 2020
As mentioned above, I believe this is resolved. If there's still an issue, please reopen.
dfreese commentedon Feb 2, 2022
I ran into this as well, however, I was using
provided_by_system=True, which means I'm limited tointerface_library. That field doesn't allow for a version to be specified.Ran into this trying to provide a solution for
nvidia-encode.so. The nvidia docker runtime doesn't create the link fromnvidia-encode.sotonvidia-encode.so.1. As a result, there doesn't seem to be a great way to specify this in a way that bazel uses the system library when running tests, for example.Let me know if this should be brought up as a separate issue (or should be considered an issue).
m3rcuriel commentedon Aug 14, 2022
I am in a similar problem and don't understand why
interface_libraryshouldn't be able to take versioned.sofiles. It seems impossible to otherwise specify thatlibfoo.so.21should not end up as a runfile.