Dynamically link to libz
libz will be a stub providing library, which means it has stable API
surface that Mainline modules can depend on. APEXes including the
runtime APEX don't need to statically link to it; it will just increase
the size of the APEX. With ag/11420260 this is even prohibited.
This change changes the static linkings to libz to dynamic linkings.
Bug: 155456180
Test: m
Change-Id: Ic6a38909241c8f851bf299130542bc323a0ff2ef
diff --git a/libprofile/Android.bp b/libprofile/Android.bp
index 890c70c..23f3241 100644
--- a/libprofile/Android.bp
+++ b/libprofile/Android.bp
@@ -33,11 +33,11 @@
shared_libs: [
"libartpalette",
"libbase",
+ "libz",
],
static_libs: [
// ZipArchive support, the order matters here to get all symbols.
"libziparchive",
- "libz",
],
export_shared_lib_headers: ["libbase"],
},