summaryrefslogtreecommitdiffstats
path: root/dalvikvm
diff options
context:
space:
mode:
Diffstat (limited to 'dalvikvm')
-rw-r--r--dalvikvm/Android.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/dalvikvm/Android.mk b/dalvikvm/Android.mk
index 5e5e40c..d85d5fb 100644
--- a/dalvikvm/Android.mk
+++ b/dalvikvm/Android.mk
@@ -16,13 +16,15 @@
LOCAL_PATH := $(call my-dir)
+dalvikvm_cflags := -Wall -Werror -Wextra
+
include $(CLEAR_VARS)
LOCAL_MODULE := dalvikvm
LOCAL_MODULE_TAGS := optional
LOCAL_CPP_EXTENSION := cc
LOCAL_SRC_FILES := dalvikvm.cc
-LOCAL_CFLAGS := -Werror
-LOCAL_SHARED_LIBRARIES := libnativehelper libstlport libdl
+LOCAL_CFLAGS := $(dalvikvm_cflags)
+LOCAL_SHARED_LIBRARIES := libdl libnativehelper
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
include external/stlport/libstlport.mk
include $(BUILD_EXECUTABLE)
@@ -33,7 +35,7 @@ LOCAL_MODULE := dalvikvm
LOCAL_MODULE_TAGS := optional
LOCAL_CPP_EXTENSION := cc
LOCAL_SRC_FILES := dalvikvm.cc
-LOCAL_CFLAGS := -Werror
+LOCAL_CFLAGS := $(dalvikvm_cflags)
LOCAL_SHARED_LIBRARIES := libnativehelper
LOCAL_LDFLAGS := -ldl
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk