diff --git a/libnativeloader/Android.bp b/libnativeloader/Android.bp index 9d3389958..c1133fbc1 100644 --- a/libnativeloader/Android.bp +++ b/libnativeloader/Android.bp @@ -9,8 +9,8 @@ cc_library { "liblog", "libcutils", "libnativebridge", + "libbase", ], - static_libs: ["libbase"], target: { android: { shared_libs: ["libdl"], diff --git a/libziparchive/Android.bp b/libziparchive/Android.bp index 1495f3936..44daf3610 100644 --- a/libziparchive/Android.bp +++ b/libziparchive/Android.bp @@ -57,11 +57,13 @@ cc_library { name: "libziparchive", host_supported: true, defaults: ["libziparchive_defaults", "libziparchive_flags"], - static_libs: ["libutils"], shared_libs: ["liblog", "libbase"], target: { android: { - static_libs: ["libz"], + shared_libs: ["libz", "libutils"], + }, + host: { + static_libs: ["libutils"], }, linux_bionic: { static_libs: ["libz"],