summaryrefslogtreecommitdiff
path: root/libunwindstack/Android.bp
diff options
context:
space:
mode:
authorMartin Stjernholm <mast@google.com>2021-05-14 17:55:24 +0100
committerMartin Stjernholm <mast@google.com>2021-05-18 13:14:52 +0100
commit79d932d306fa8ba224011228045f8e8c7517177a (patch)
treefaf02eaf45702f96144045a5b259d7b418ae9971 /libunwindstack/Android.bp
parentb7328269d7f5fe4407d7267750992a147e041d80 (diff)
downloadunwinding-79d932d306fa8ba224011228045f8e8c7517177a.tar.gz
Link libdexfile_support statically.
It's a tiny library that is better off without the DSO overhead. Test: `m droid` without libdexfile_support available as a shared lib Test: Boot Bug: 143978909 Change-Id: I8c611438e6ec7df8adf8bf942c6c35031cdd9dda
Diffstat (limited to 'libunwindstack/Android.bp')
-rw-r--r--libunwindstack/Android.bp16
1 files changed, 9 insertions, 7 deletions
diff --git a/libunwindstack/Android.bp b/libunwindstack/Android.bp
index 306cd56..324377a 100644
--- a/libunwindstack/Android.bp
+++ b/libunwindstack/Android.bp
@@ -136,33 +136,33 @@ cc_library {
defaults: ["libunwindstack_defaults"],
srcs: ["DexFile.cpp"],
cflags: ["-DDEXFILE_SUPPORT"],
- shared_libs: ["libdexfile_support"],
+ static_libs: ["libdexfile_support"],
target: {
vendor: {
cflags: ["-UDEXFILE_SUPPORT"],
exclude_srcs: ["DexFile.cpp"],
- exclude_shared_libs: ["libdexfile_support"],
+ exclude_static_libs: ["libdexfile_support"],
},
product: {
cflags: ["-UDEXFILE_SUPPORT"],
exclude_srcs: ["DexFile.cpp"],
- exclude_shared_libs: ["libdexfile_support"],
+ exclude_static_libs: ["libdexfile_support"],
},
recovery: {
cflags: ["-UDEXFILE_SUPPORT"],
exclude_srcs: ["DexFile.cpp"],
- exclude_shared_libs: ["libdexfile_support"],
+ exclude_static_libs: ["libdexfile_support"],
},
vendor_ramdisk: {
cflags: ["-UDEXFILE_SUPPORT"],
exclude_srcs: ["DexFile.cpp"],
- exclude_shared_libs: ["libdexfile_support"],
+ exclude_static_libs: ["libdexfile_support"],
},
native_bridge: {
cflags: ["-UDEXFILE_SUPPORT"],
exclude_srcs: ["DexFile.cpp"],
- exclude_shared_libs: ["libdexfile_support"],
+ exclude_static_libs: ["libdexfile_support"],
},
},
@@ -284,10 +284,10 @@ cc_defaults {
"liblog",
"liblzma",
"libunwindstack",
- "libdexfile_support",
],
static_libs: [
+ "libdexfile_support",
"libgmock",
],
@@ -362,6 +362,8 @@ cc_defaults {
"liblog",
"liblzma",
"libunwindstack",
+ ],
+ static_libs: [
"libdexfile_support",
],
}