diff options
Diffstat (limited to 'rust/rust.go')
-rw-r--r-- | rust/rust.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/rust/rust.go b/rust/rust.go index a7ad29405..6fc682f25 100644 --- a/rust/rust.go +++ b/rust/rust.go @@ -1684,7 +1684,7 @@ func (mod *Module) DepsMutator(actx android.BottomUpMutatorContext) { } for _, lib := range deps.SharedLibs { - depTag := cc.SharedDepTag(mod.Static()) + depTag := cc.SharedDepTag() name, version := cc.StubsLibNameAndVersion(lib) variations := []blueprint.Variation{ @@ -1830,6 +1830,13 @@ func (mod *Module) OutgoingDepIsInSameApex(depTag blueprint.DependencyTag) bool return false } + if mod.Static() && cc.IsSharedDepTag(depTag) { + // shared_lib dependency from a static lib is considered as crossing + // the APEX boundary because the dependency doesn't actually is + // linked; the dependency is used only during the compilation phase. + return false + } + return true } |