bazelbuild / bazelbuild/bazel-skylib
Feature Request: native_binary to support shared library dependency
- Dominant language
- Starlark
- Stars
- 444
- Forks
- 202
- PR merge metrics
- No merged PRs in 30d
Description
I would like to run a precompiled binary that depends on precompiled `.so` libraries distributed together.
I tried putting it in runfiles via `data` dependency using `filegroup(srcs = ["*.so"])` but it doesn't work. I think I still need to tweak rpath.
It'd be great if it is easy to run such binary with native_binary.
Contributor guide
Research direction
Start by reviewing the native_binary rule and its existing documentation to understand how data dependencies and runfiles are handled. Define what support for a precompiled binary with colocated .so libraries should look like, including the required runtime search path, then validate the behavior with an appropriate rule-level test.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100