shithub: openh264

Download patch

ref: 30fff7ece0abb2511faa90bf8af438cefea5c9f0
parent: 54c63e254744d5b0cca77dde8f4490e94fbe5a57
author: Martin Storsjö <[email protected]>
date: Fri Feb 28 21:09:25 EST 2014

Allow building plain armeabi binaries for android

Building with "make OS=android APP_ABI=armeabi" will
produce arm binaries that will conform to the armeabi
ABI - not using any features outside of armv5te by
default (but still optionally using the NEON functions at
runtime if detected - even though such devices should rather
use the default armeabi-v7a build).

--- a/build/platform-android.mk
+++ b/build/platform-android.mk
@@ -4,10 +4,12 @@
 GCCVERSION = 4.8
 NDKLEVEL = 12
 ifeq ($(ARCH), arm)
+  ifneq ($(APP_ABI), armeabi)
     CFLAGS += -march=armv7-a -mfloat-abi=softfp
     CFLAGS += -mfpu=vfpv3-d16
     LDFLAGS += -march=armv7-a -Wl,--fix-cortex-a8
     APP_ABI = armeabi-v7a
+  endif
     TOOLCHAINPREFIX = $(shell NDK_PROJECT_PATH=./codec/build/android/dec make --no-print-dir -f $(NDKROOT)/build/core/build-local.mk DUMP_TOOLCHAIN_PREFIX APP_ABI=armeabi)
   ifeq (Yes, $(USE_ASM))
     ASMFLAGS += -march=armv7-a -mfpu=neon