Python3 on device links against liblog

Fixes: 148037229
Test: cherry-pick https://r.android.com/1212194; m try_python_binary_test
Change-Id: I6e26ba232d7698a4889a6e0be1aeb09d54cc4dc5
This commit is contained in:
Dan Willemsen 2020-01-20 22:08:20 -08:00
parent 515f043a6b
commit d7a1dee1c1
1 changed files with 5 additions and 0 deletions

View File

@ -340,6 +340,11 @@ func (p *Module) DepsMutator(ctx android.BottomUpMutatorContext) {
// dependencies later. // dependencies later.
ctx.AddFarVariationDependencies(ctx.Target().Variations(), launcherSharedLibTag, "libsqlite") ctx.AddFarVariationDependencies(ctx.Target().Variations(), launcherSharedLibTag, "libsqlite")
if ctx.Device() {
ctx.AddFarVariationDependencies(ctx.Target().Variations(), launcherSharedLibTag,
"liblog")
}
if ctx.Target().Os.Bionic() { if ctx.Target().Os.Bionic() {
ctx.AddFarVariationDependencies(ctx.Target().Variations(), launcherSharedLibTag, ctx.AddFarVariationDependencies(ctx.Target().Variations(), launcherSharedLibTag,
"libc", "libdl", "libm") "libc", "libdl", "libm")