From d7a1dee1c1335700a4cdaa4e443cbe7160875130 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Mon, 20 Jan 2020 22:08:20 -0800 Subject: [PATCH] Python3 on device links against liblog Fixes: 148037229 Test: cherry-pick https://r.android.com/1212194; m try_python_binary_test Change-Id: I6e26ba232d7698a4889a6e0be1aeb09d54cc4dc5 --- python/python.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/python.go b/python/python.go index c67c577dc..8b912be17 100644 --- a/python/python.go +++ b/python/python.go @@ -340,6 +340,11 @@ func (p *Module) DepsMutator(ctx android.BottomUpMutatorContext) { // dependencies later. ctx.AddFarVariationDependencies(ctx.Target().Variations(), launcherSharedLibTag, "libsqlite") + if ctx.Device() { + ctx.AddFarVariationDependencies(ctx.Target().Variations(), launcherSharedLibTag, + "liblog") + } + if ctx.Target().Os.Bionic() { ctx.AddFarVariationDependencies(ctx.Target().Variations(), launcherSharedLibTag, "libc", "libdl", "libm")