diff options
author | 2014-07-15 17:10:35 +0000 | |
---|---|---|
committer | 2014-07-15 17:10:35 +0000 | |
commit | f1dac7d7e74fff6e92c2d74eb5d9e6793ee19087 (patch) | |
tree | d9a3ae2a4e29b81315227d9e6f6d2ba1bb0b270b | |
parent | 6aa48ad067053a0b7d73218aeb22683838ba17eb (diff) | |
parent | 81a48d47d1a6960169fa39edfaa710ffa687721f (diff) | |
download | latinime-f1dac7d7e74fff6e92c2d74eb5d9e6793ee19087.tar.gz latinime-f1dac7d7e74fff6e92c2d74eb5d9e6793ee19087.tar.xz latinime-f1dac7d7e74fff6e92c2d74eb5d9e6793ee19087.zip |
am 81a48d47: Add -mstackrealign to avoid crashes with SSE instructions on pre-K x86 devices.
* commit '81a48d47d1a6960169fa39edfaa710ffa687721f':
Add -mstackrealign to avoid crashes with SSE instructions on pre-K x86 devices.
-rw-r--r-- | native/jni/Android.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/native/jni/Android.mk b/native/jni/Android.mk index 72f8f87e4..8be4d78b6 100644 --- a/native/jni/Android.mk +++ b/native/jni/Android.mk @@ -34,6 +34,12 @@ LOCAL_CFLAGS += -Werror -Wall -Wextra -Weffc++ -Wformat=2 -Wcast-qual -Wcast-ali # To suppress compiler warnings for unused variables/functions used for debug features etc. LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-function +# HACK: -mstackrealign is required for x86 builds running on pre-KitKat devices to avoid crashes +# with SSE instructions. +ifeq ($(TARGET_ARCH), x86) + LOCAL_CFLAGS += -mstackrealign +endif # x86 + include $(LOCAL_PATH)/NativeFileList.mk LOCAL_SRC_FILES := \ |