ref: 23ab1172407c47e577538f2252825ab3b0aea010
parent: 30c7810cdf880bb4827689f3445b40174c39b26a
author: Martin Storsjö <[email protected]>
date: Fri Feb 28 21:06:06 EST 2014
Don't set -mfpu=neon while building the normal C++ files This will make the normal C++ code not run on non-NEON devices at all, making the runtime CPU feature detection pointless. Adding -mfpu=neon to CFLAGS is not necessary, it's enough to add it while building those individual .S files (via ASMFLAGS).
--- a/build/platform-android.mk
+++ b/build/platform-android.mk
@@ -8,11 +8,7 @@
GCCPATHPREFIX = arm-linux-androideabi
GCCPREFIX = arm-linux-androideabi
CFLAGS += -march=armv7-a -mfloat-abi=softfp
- ifeq (Yes, $(HAVE_NEON))
- CFLAGS += -mfpu=neon
- else
CFLAGS += -mfpu=vfpv3-d16
- endif
LDFLAGS += -march=armv7-a -Wl,--fix-cortex-a8
APP_ABI = armeabi-v7a
ifeq (Yes, $(USE_ASM))