am cc84526b: Merge "Add atom optimization flags"
Merge commit 'cc84526bcef5ffd7ed9abf73dc3bfc9e29784b22' into gingerbread-plus-aosp
* commit 'cc84526bcef5ffd7ed9abf73dc3bfc9e29784b22':
Add atom optimization flags
diff --git a/core/combo/TARGET_linux-x86.mk b/core/combo/TARGET_linux-x86.mk
index 17c5ec3..f0eb209 100644
--- a/core/combo/TARGET_linux-x86.mk
+++ b/core/combo/TARGET_linux-x86.mk
@@ -159,7 +159,13 @@
$(TARGET_CRTEND_O)
endef
-TARGET_GLOBAL_CFLAGS += -m32 -D__ANDROID__
+ifeq ($(TARGET_ARCH_VARIANT),x86-atom)
+ # Enable recent IA friendly memory routines (such as for Atom)
+ # These will not work on the earlier x86 machines
+ TARGET_GLOBAL_CFLAGS += -mtune=i686 -DUSE_SSSE3 -DUSE_SSE2
+endif
+
+TARGET_GLOBAL_CFLAGS += -D__ANDROID__
TARGET_GLOBAL_LDFLAGS += -m32
endif #simulator