From 7280e507b61851bce9b18259368d65b9e950c330 Mon Sep 17 00:00:00 2001 From: Dmitriy Ivanov Date: Thu, 23 Apr 2015 12:24:43 -0700 Subject: [PATCH] Remove jemalloc.a from libc_nomalloc.a Change-Id: I86edc1a6cf3a26c46e6daef2c859459c1b0f29af --- libc/Android.mk | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/libc/Android.mk b/libc/Android.mk index 8ed969fe9..8b3498edc 100644 --- a/libc/Android.mk +++ b/libc/Android.mk @@ -1221,10 +1221,6 @@ LOCAL_WHOLE_STATIC_LIBRARIES := \ LOCAL_WHOLE_STATIC_LIBRARIES_arm := libc_aeabi -ifneq ($(MALLOC_IMPL),dlmalloc) -LOCAL_WHOLE_STATIC_LIBRARIES += libjemalloc -endif - LOCAL_CXX_STL := none LOCAL_SYSTEM_SHARED_LIBRARIES := @@ -1317,6 +1313,11 @@ LOCAL_MODULE := libc LOCAL_CLANG := $(use_clang) LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) LOCAL_WHOLE_STATIC_LIBRARIES := libc_common + +ifneq ($(MALLOC_IMPL),dlmalloc) +LOCAL_WHOLE_STATIC_LIBRARIES += libjemalloc +endif + LOCAL_CXX_STL := none LOCAL_SYSTEM_SHARED_LIBRARIES := LOCAL_ADDRESS_SANITIZER := false @@ -1364,6 +1365,11 @@ LOCAL_STRIP_MODULE := keep_symbols LOCAL_SHARED_LIBRARIES := libdl LOCAL_WHOLE_STATIC_LIBRARIES := libc_common + +ifneq ($(MALLOC_IMPL),dlmalloc) +LOCAL_WHOLE_STATIC_LIBRARIES += libjemalloc +endif + LOCAL_CXX_STL := none LOCAL_SYSTEM_SHARED_LIBRARIES :=