[vlc-commits] old contribs: fix c++ compile for android
Rafaël Carré
git at videolan.org
Tue Aug 30 05:31:06 CEST 2011
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Mon Aug 29 23:14:40 2011 -0400| [9e1c52b0047b0b8f4a262241d563703fab49c097] | committer: Rafaël Carré
old contribs: fix c++ compile for android
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9e1c52b0047b0b8f4a262241d563703fab49c097
---
extras/contrib/bootstrap | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/extras/contrib/bootstrap b/extras/contrib/bootstrap
index 918eb99..bd6fe07 100755
--- a/extras/contrib/bootstrap
+++ b/extras/contrib/bootstrap
@@ -370,10 +370,18 @@ case "$DISTRO" in
# Add the PATH to the NDK
add_makefile_cfg "ANDROID_NDK = ${ANDROID_NDK}"
add_makefile_cfg "PATH = ${ANDROID_NDK}/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/:${PATH}"
+
add_enabled_makefile_cfg "HAVE_LINUX"
if test -z "$NO_NEON"; then
add_enabled_makefile_cfg "HAVE_NEON"
+ ARM_EABI=armeabi-v7a
+ else
+ ARM_EABI=armeabi
fi
+ # make sure android toolchain can build C++
+ EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS -D__STDC_VERSION__=199901L"
+ EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS -I${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++/include"
+ EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS -I${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++/libs/$ARM_EABI/include"
esac
# Save passed flags
More information about the vlc-commits
mailing list