From 35a6b4fb65b17fbc698fbd0796eee89b7a06c5e9 Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Tue, 26 Feb 2013 15:10:22 -0800 Subject: [PATCH] Specify -msse3 on host as on target. Make the host and the target x86 build more uniform by using the same machine flags. Its unlikely Android has ever been built on a machine without SSE3 support. Bug: 8068608 Change-Id: I19635528b61bf2c6faf02c2e575b1d9bf8025d3a --- core/combo/HOST_linux-x86.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/combo/HOST_linux-x86.mk b/core/combo/HOST_linux-x86.mk index 3001f59a44..2d586a3bb6 100644 --- a/core/combo/HOST_linux-x86.mk +++ b/core/combo/HOST_linux-x86.mk @@ -40,7 +40,8 @@ ifneq ($(strip $(BUILD_HOST_64bit)),) HOST_GLOBAL_CFLAGS += -m64 HOST_GLOBAL_LDFLAGS += -m64 else -HOST_GLOBAL_CFLAGS += -m32 +# We expect SSE3 floating point math. +HOST_GLOBAL_CFLAGS += -mstackrealign -msse3 -mfpmath=sse -m32 HOST_GLOBAL_LDFLAGS += -m32 endif # BUILD_HOST_64bit