Compile with -mstackrealign on Android-x86, "fixing" mystery crashes on Zenfone.

This is really just a workaround, I have no idea what is misaligning the stack. But it doesn't feel like it's us.

This has a small performance penalty but x86-Android is pretty rare, and it's better than crashing.
This commit is contained in:
Henrik Rydgard committed 2015-07-22 21:03:27 +02:00
1 parent 11f64ee27b
commit 1c8bae0925
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -46,7 +46,7 @@ ifeq ($(TARGET_ARCH_ABI),x86)
LOCAL_LDLIBS += $(LOCAL_PATH)/../../ffmpeg/android/x86/lib/libavutil.a
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../ffmpeg/android/x86/include
LOCAL_CFLAGS := $(LOCAL_CFLAGS) -D_ARCH_32 -D_M_IX86 -fomit-frame-pointer -mtune=atom -mfpmath=sse -mssse3
LOCAL_CFLAGS := $(LOCAL_CFLAGS) -D_ARCH_32 -D_M_IX86 -fomit-frame-pointer -mtune=atom -mfpmath=sse -mssse3 -mstackrealign
endif
ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
LOCAL_LDLIBS += $(LOCAL_PATH)/../../ffmpeg/android/arm64/lib/libavformat.a
+1 -1
Submodule native updated: 477568b348...a9cefe2f3a.