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).
This commit is contained in:
parent
30c7810cdf
commit
23ab117240
@ -8,11 +8,7 @@ ifeq ($(ARCH), arm)
|
||||
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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user