[vlc-devel] [PATCH] contrib: extend CFLAGS when using NEON

Rafaël Carré funman at videolan.org
Sun Jan 22 20:48:59 CET 2012


---
 contrib/src/main.mak |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index fc4c5a9..b810887 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -100,7 +100,7 @@ CXX := $(HOST)-g++ --sysroot=$(ANDROID_NDK)/platforms/android-9/arch-arm
 EXTRA_CFLAGS += -D__STDC_VERSION__=199901L
 EXTRA_CFLAGS += -I$(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/include
 ifdef HAVE_NEON
-    EXTRA_CFLAGS += -I$(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/include
+    EXTRA_CFLAGS += -I$(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/include -mfloat-abi=softfp -mfpu=neon -mcpu=cortex-a8
 else
     EXTRA_CFLAGS += -I$(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/libs/armeabi/include
 endif
-- 
1.7.8.3



More information about the vlc-devel mailing list