From 4fa44e4465a5aaafe7aac277ef0bef4972592ff3 Mon Sep 17 00:00:00 2001 From: Aleksei Vetrov Date: Fri, 10 Nov 2023 17:46:13 +0000 Subject: elfutils: refactor transitive dependencies Soong doesn't have propagation for static library dependencies. Add "elfutils_transitive_defaults" to have "static_libs" that are applied to all static libraries that use elfutils. For now this provides "libz", which is needed by "elfutils". This have to be included explicitly by all elfutils users. Bug: 169779783 Bug: 309972007 Change-Id: I17d97ed3496ff42fda215376efcfe12d691dc40b Signed-off-by: Aleksei Vetrov --- util/nanoapp_postprocess/Android.bp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/nanoapp_postprocess/Android.bp b/util/nanoapp_postprocess/Android.bp index b5cdf992..4528a2f0 100644 --- a/util/nanoapp_postprocess/Android.bp +++ b/util/nanoapp_postprocess/Android.bp @@ -25,6 +25,7 @@ package { cc_binary_host { name: "nanoapp_postprocess", + defaults: ["elfutils_transitive_defaults"], srcs: ["postprocess_elf.c"], @@ -37,9 +38,8 @@ cc_binary_host { static_libs: [ "libnanohub_common", - // libelf needed for ELF parsing support, libz required by libelf + // libelf needed for ELF parsing support "libelf", - "libz", ], // Statically linking libc++ so this binary can be copied out of the tree and -- cgit v1.2.3