From fb9f5d630b131a3e3b490c7babd9fd2f5834006d Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 7 Sep 2019 17:59:08 -0400 Subject: [PATCH] use cc_library instead of cc_library_static --- Android.bp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Android.bp b/Android.bp index 387ed36..7e2a5f9 100644 --- a/Android.bp +++ b/Android.bp @@ -48,11 +48,22 @@ lib_src_files = [ "util.c", ] -cc_library_static { +cc_library { name: "libhardened_malloc", recovery_available: true, defaults: ["hardened_malloc_defaults"], srcs: lib_src_files, + target: { + android: { + shared: { + enabled: false, + }, + system_shared_libs: [], + }, + linux_bionic: { + system_shared_libs: [], + }, + }, product_variables: { debuggable: { cflags: ["-DLABEL_MEMORY"],