Browse Source

MKV: force neon on armv7*

VLC configure fails to detect NEON support because of a clang error with
-mhard-float.
Thomas Guillem 7 years ago
parent
commit
4b2efa2e85
1 changed files with 3 additions and 4 deletions
  1. 3 4
      buildMobileVLCKit.sh

+ 3 - 4
buildMobileVLCKit.sh

@@ -460,10 +460,10 @@ buildLibVLC() {
         SCARYFLAG="--disable-dca --disable-dvbpsi --disable-avcodec --disable-avformat --disable-zvbi --enable-vpx"
     fi
 
-    if [ "$TVOS" = "yes" ]; then
-        TVOSOPTIONS="--disable-neon"
+    if [ "$TVOS" != "yes" -a \( "$ARCH" = "armv7" -o "$ARCH" = "armv7s" \) ];then
+        export ac_cv_arm_neon=yes
     else
-        TVOSOPTIONS="--enable-neon"
+        export ac_cv_arm_neon=no
     fi
 
     # Available but not authorized
@@ -481,7 +481,6 @@ buildLibVLC() {
         --enable-static \
         ${DEBUGFLAG} \
         ${SCARYFLAG} \
-        ${TVOSOPTIONS} \
         --disable-macosx \
         --disable-macosx-qtkit \
         --disable-macosx-avfoundation \