bazelbuild / bazelbuild/bazel

cc_import system_provided still sets rpath

Open
#10,190 5 comments 4 reactions 0 assignees View on GitHub
not stale P4 team-Rules-CPP type: support / not a bug (process)
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 20h
Merged PRs (30d)
72

Description

### Description of the problem / feature request:

I have a `cc_import` with `interface_library` set and `system_provided` set to true. I'd expect a binary depending on this would show the library as `NEEDED` but not to add it to the `RUNPATH` of the binary. I'm however seeing it being added into the `RUNPATH`. Is this the intended behaviour?

Contributor guide

Open the contributing guide

Research direction

Start with the cc_import handling for interface_library and system_provided, then reproduce the reported link output and inspect the generated RUNPATH and NEEDED entries. Done means establishing whether this combination is intended and, if not, identifying the relevant Bazel build-system behavior to change.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.