diff options
author | Aleksei Vetrov <vvvvvv@google.com> | 2023-11-14 18:48:28 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-11-14 18:48:28 +0000 |
commit | 45e038f4f71ae7f69a7c91a18bc05e07a8e7d162 (patch) | |
tree | e89d926cbad02e59ff927334bbf090c8872a5152 | |
parent | 5335547c0b5ef624a1cf7a87733594524efec0e9 (diff) | |
parent | 066bf61494e7c0e4c740117965139e0b8a203e66 (diff) | |
download | elfutils-45e038f4f71ae7f69a7c91a18bc05e07a8e7d162.tar.gz |
elfutils: refactor transitive dependencies am: abb831b0b4 am: 066bf61494
Original change: https://android-review.googlesource.com/c/platform/external/elfutils/+/2826410
Change-Id: Iea966756faa64f2f09578cc35e876fc30da3269c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | Android.bp | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -39,8 +39,19 @@ license { ], } +// Properties to apply to all static libraries that use elfutils. +// Soong doesn't have propagation for static library dependencies, +// and this have to be included explicitly by elfutils users. +cc_defaults { + name: "elfutils_transitive_defaults", + static_libs: [ + "libz", + ], +} + cc_defaults { name: "elfutils_defaults", + defaults: ["elfutils_transitive_defaults"], cflags: [ "-DHAVE_CONFIG_H", "-D_GNU_SOURCE", @@ -75,8 +86,6 @@ cc_library { srcs: ["libelf/*.c",], - static_libs: ["libz"], - export_include_dirs: ["libelf"], target: { @@ -139,7 +148,6 @@ cc_library_host_static { musl: { static_libs: [ "libfts", - "libz", ], }, }, |