Merge "Fix Mac build."
diff --git a/Android.mk b/Android.mk
index 4a842dd..b936a7d 100644
--- a/Android.mk
+++ b/Android.mk
@@ -49,6 +49,7 @@
 LOCAL_MODULE := core-junit
 include $(BUILD_JAVA_LIBRARY)
 
+ifeq ($(WITH_HOST_DALVIK),true)
 # ----------------------------------
 # build a core-junit-hostdex jar that contains exactly the same classes
 # as core-junit.
@@ -67,3 +68,5 @@
 LOCAL_BUILD_HOST_DEX := true
 include $(BUILD_HOST_JAVA_LIBRARY)
 
+endif
+