summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmds/installd/Android.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmds/installd/Android.mk b/cmds/installd/Android.mk
index 35f937438..ed11affdd 100644
--- a/cmds/installd/Android.mk
+++ b/cmds/installd/Android.mk
@@ -6,13 +6,13 @@ common_src_files := \
#
# Static library used in testing and executable
#
+include $(CLEAR_VARS)
+
ifneq ($(TARGET_BUILD_VARIANT),user)
LOCAL_CFLAGS += -DALLOW_DEXROOT_ON_CACHE
endif
-include $(CLEAR_VARS)
-
LOCAL_SRC_FILES := \
$(common_src_files)
@@ -28,6 +28,10 @@ include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
+ifneq ($(TARGET_BUILD_VARIANT),user)
+ LOCAL_CFLAGS += -DALLOW_DEXROOT_ON_CACHE
+endif
+
LOCAL_SRC_FILES := \
installd.c \
$(common_src_files)