diff options
author | Aleksei Vetrov <vvvvvv@google.com> | 2023-11-10 17:46:13 +0000 |
---|---|---|
committer | Matthias Männich <maennich@google.com> | 2023-11-14 17:42:51 +0000 |
commit | 4fa44e4465a5aaafe7aac277ef0bef4972592ff3 (patch) | |
tree | 63b1dd7c90e74e418f1a43c704b59c6319689ad2 | |
parent | 2ad8a91c21075bad0507d4d0f23df9ae69f97814 (diff) | |
download | contexthub-4fa44e4465a5aaafe7aac277ef0bef4972592ff3.tar.gz |
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 <vvvvvv@google.com>
-rw-r--r-- | util/nanoapp_postprocess/Android.bp | 4 |
1 files 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 |