shithub: openh264

Download patch

ref: 5a78735802847490adc4ba4c84ac1fa6519d8b70
parent: 9b442b3d44bbb2afcdf0bea6e75191d4bacc8982
author: Martin Storsjö <martin@martin.st>
date: Sun Feb 1 18:00:55 EST 2015

Force armv7/neon within the arm assembly header file

This avoids having to add extra compiler flags to be able to build
them.

--- a/build/platform-android.mk
+++ b/build/platform-android.mk
@@ -12,9 +12,6 @@
     LDFLAGS += -march=armv7-a -Wl,--fix-cortex-a8
     APP_ABI = armeabi-v7a
   endif
-  ifeq (Yes, $(USE_ASM))
-    ASMFLAGS += -march=armv7-a -mfpu=neon
-  endif
 else ifeq ($(ARCH), arm64)
   APP_ABI = arm64-v8a
 else ifeq ($(ARCH), x86)
--- a/codec/common/arm/arm_arch_common_macro.S
+++ b/codec/common/arm/arm_arch_common_macro.S
@@ -50,6 +50,8 @@
 
 .section .note.GNU-stack,"",%progbits // Mark stack as non-executable
 .text
+.arch armv7-a
+.fpu neon
 
 .macro WELS_ASM_FUNC_BEGIN funcName
 .align 2