From 852b64e5493c0c170ed17b0a4594b9f9f0de5cb2 Mon Sep 17 00:00:00 2001 From: Martin Stjernholm Date: Wed, 20 Feb 2019 17:01:24 +0000 Subject: [PATCH] Fix libdexfile dependencies to avoid direct dependency on libdexfile_external. It should be dlopen'ed lazily by libdexfile_support now. Also change debuggerd_test to not link libunwindstack and its dependencies statically - the static libs can overlap with the dynamic ones. Test: mmma system/core/debuggerd/ Test: atest debuggerd_test Test: mmma system/core/{libunwindstack,libbacktrace}, run host gtests (cannot get atest to work) Bug: 124827589 Bug: 123186083 Change-Id: I9e7bf9bcbae499af4e1be4c9854bce441e2a7b55 --- debuggerd/Android.bp | 4 +--- libunwindstack/Android.bp | 3 --- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/debuggerd/Android.bp b/debuggerd/Android.bp index 76c5adeec..0cf3378b1 100644 --- a/debuggerd/Android.bp +++ b/debuggerd/Android.bp @@ -218,13 +218,11 @@ cc_test { "liblog", "libminijail", "libnativehelper", + "libunwindstack", ], static_libs: [ "libdebuggerd", - "libdexfile_external", // libunwindstack dependency - "libdexfile_support", // libunwindstack dependency - "libunwindstack", ], local_include_dirs: [ diff --git a/libunwindstack/Android.bp b/libunwindstack/Android.bp index c90f5b271..a49fd9ed4 100644 --- a/libunwindstack/Android.bp +++ b/libunwindstack/Android.bp @@ -95,7 +95,6 @@ cc_library { "DexFiles.cpp", ], exclude_shared_libs: [ - "libdexfile_external", "libdexfile_support", ], }, @@ -106,7 +105,6 @@ cc_library { "DexFiles.cpp", ], exclude_shared_libs: [ - "libdexfile_external", "libdexfile_support", ], }, @@ -137,7 +135,6 @@ cc_library { shared_libs: [ "libbase", - "libdexfile_external", "libdexfile_support", "liblog", "liblzma",