Permalink
Browse files

Work with Android NDK r12b

clang + libc++ does not work, it still requires libc++_shared.so
runtime even if -lstdc++ is used, which supposed to link with static
version of libc++.
  • Loading branch information...
1 parent f857b63 commit a00442bee64a720665b6271b174908fe0386c9ca @tatsuhiro-t tatsuhiro-t committed Jul 17, 2016
Showing with 7 additions and 13 deletions.
  1. +2 −3 android-config
  2. +5 −10 doc/sources/building-android-binary.rst
View
@@ -39,9 +39,8 @@ PATH="$TOOLCHAIN"/bin:"$PATH"
--without-libxml2 \
--disable-python-bindings \
--disable-examples \
- --enable-werror \
- CC="$TOOLCHAIN"/bin/clang \
- CXX="$TOOLCHAIN"/bin/clang++ \
+ CC="$TOOLCHAIN"/bin/arm-linux-androideabi-gcc \
+ CXX="$TOOLCHAIN"/bin/arm-linux-androideabi-g++ \
CPPFLAGS="-fPIE -I$PREFIX/include" \
PKG_CONFIG_LIBDIR="$PREFIX/lib/pkgconfig" \
LDFLAGS="-fPIE -pie -L$PREFIX/lib"
@@ -21,17 +21,12 @@ unpacked:
.. code-block:: text
- $ build/tools/make-standalone-toolchain.sh \
- --install-dir=$ANDROID_HOME/toolchain \
- --toolchain=arm-linux-androideabi-4.9 \
- --llvm-version=3.5 \
- --platform=android-16
+ $ build/tools/make_standalone_toolchain.py \
+ --arch arm --api 16 --stl gnustl
+ --install-dir $ANDROID_HOME/toolchain
-The additional flag ``--system=linux-x86_64`` may be required if you
-are using x86_64 system.
-
-The platform level is not important here because we don't use Android
-specific C/C++ API.
+The API level (``--api``) is not important here because we don't use
+Android specific C/C++ API.
The dependent libraries, such as OpenSSL and libev should be built
with the toolchain and installed under ``$ANDROID_HOME/usr/local``.

0 comments on commit a00442b

Please sign in to comment.