[Android] if ndk 8b, build with gcc 4.4.3.

Sébastien Toque git at videolan.org
Wed Sep 26 19:12:03 CEST 2012


vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Wed Sep 26 19:11:40 2012 +0200| [17cc6c079910b74184af9834891646b8b3bdbf9a] | committer: Sébastien Toque

if ndk 8b, build with gcc 4.4.3.

There is a regression in gcc 4.6, DECL_USER_ALIGN is not handled properly,
 variables are not aligned, causing a crash in avcodec when decoding aac sbr with neon.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52181

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=17cc6c079910b74184af9834891646b8b3bdbf9a
---

 compile.sh                     |    4 ++--
 vlc-android/jni/Application.mk |    1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/compile.sh b/compile.sh
index b0bec9f..28e2270 100755
--- a/compile.sh
+++ b/compile.sh
@@ -22,8 +22,8 @@ case "$REL" in
     ;;
     8?)
         # NDK >= v8b, both 4.4.3 and 4.6 available, we use 4.6
-        GCCVER=4.6
-        CXXSTL="/4.6"
+        GCCVER=4.4.3
+        CXXSTL="/4.4.3"
     ;;
     *)
         echo "You need the NDKv7 or later"
diff --git a/vlc-android/jni/Application.mk b/vlc-android/jni/Application.mk
index 0e97806..006c98a 100644
--- a/vlc-android/jni/Application.mk
+++ b/vlc-android/jni/Application.mk
@@ -1,2 +1,3 @@
 APP_PLATFORM := android-9
 APP_ABI := $(ANDROID_ABI)
+NDK_TOOLCHAIN_VERSION=4.4.3



More information about the Android mailing list