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.
This have to be included explicitly by all elfutils users.
Bug: 169779783
Bug: 309972007
Change-Id: I6c21dc649616fc13822a851be8317f610e6637c8
Signed-off-by: Aleksei Vetrov <vvvvvv@google.com>
diff --git a/Android.bp b/Android.bp
index 2c50394..266bba9 100644
--- a/Android.bp
+++ b/Android.bp
@@ -14,6 +14,7 @@
cc_defaults {
name: "dwarves_defaults",
+ defaults: ["elfutils_transitive_defaults"],
cflags: [
"-DDWARVES_MAJOR_VERSION=1",
"-DDWARVES_MINOR_VERSION=25",
@@ -49,7 +50,6 @@
"libbpf",
"libdw",
"libelf",
- "libz",
],
}