summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mcld-device-build.mk5
-rw-r--r--tools/mcld/Android.mk4
2 files changed, 9 insertions, 0 deletions
diff --git a/mcld-device-build.mk b/mcld-device-build.mk
index 4c73156..5734e91 100644
--- a/mcld-device-build.mk
+++ b/mcld-device-build.mk
@@ -27,6 +27,11 @@ ifeq ($(HOST_OS),darwin)
LOCAL_CFLAGS += -DDARWIN_FLEX=1
endif
+ifeq ($(BUILD_ARM_FOR_X86),true)
+LOCAL_CFLAGS_x86 += -DPROVIDE_ARM_CODEGEN -DFORCE_BUILD_ARM
+LOCAL_CFLAGS_x86_64 += -DPROVIDE_ARM_CODEGEN -DFORCE_BUILD_ARM
+endif
+
# Make sure bionic is first so we can include system headers.
LOCAL_C_INCLUDES := \
bionic \
diff --git a/tools/mcld/Android.mk b/tools/mcld/Android.mk
index a9e3dc6..0405848 100644
--- a/tools/mcld/Android.mk
+++ b/tools/mcld/Android.mk
@@ -60,6 +60,10 @@ endif
# Add x86 libraries for both x86 and x86_64 targets
ifneq (, $(findstring x86,$(TARGET_ARCH)))
LOCAL_WHOLE_STATIC_LIBRARIES += $(MCLD_X86_LIBS)
+ifeq ($(BUILD_ARM_FOR_X86),true)
+ LOCAL_WHOLE_STATIC_LIBRARIES += $(MCLD_ARM_LIBS) \
+ $(MCLD_AARCH64_LIBS)
+endif
endif