@@ -13,52 +13,50 @@ index 40453f7..7ffc050 100755
1313+ CXXPATH=$AndroidNDKRoot/toolchains/${TOOLCHAIN}/prebuilt/${PlatformOS}-x86_64/bin/clang++
1414+ TOOLSET=clang-androidR8e
1515+ ;;
16- + "10e-rc4 (64-bit)")
16+ + "10e-rc4 (64-bit)"|"10e (64-bit)" )
1717+ TOOLCHAIN=llvm-3.6
1818+ CXXPATH=$AndroidNDKRoot/toolchains/${TOOLCHAIN}/prebuilt/${PlatformOS}-x86_64/bin/clang++
1919+ TOOLSET=clang-androidR8e
2020 ;;
2121 *)
2222 echo "Undefined or not supported Android NDK version!"
23- @@ -392,6 +397,7 @@ echo "Building boost for android"
23+ @@ -391,6 +396,7 @@ echo "Building boost for android"
24+ export AndroidBinariesPath=`dirname $CXXPATH`
2425 export PATH=$AndroidBinariesPath:$PATH
2526 export AndroidNDKRoot
27+ + export PlatformOS
2628 export NO_BZIP2=1
27- + export ICONV_PATH="`pwd`/../../libiconv/x86"
28-
29+
2930 cxxflags=""
30- for flag in $CXXFLAGS; do cxxflags="$cxxflags cxxflags=$flag"; done
31- @@ -404,8 +410,12 @@ echo "Building boost for android"
32- threading=multi \
31+ @@ -405,7 +411,7 @@ echo "Building boost for android"
3332 --layout=versioned \
3433 --prefix="./../$BUILD_DIR/" \
35- + boost.locale.posix=off \
36- + boost.locale.std=on \
37- + boost.locale.iconv=on \
38- + boost.locale.icu=off \
3934 $LIBRARIES \
4035- install 2>&1 \
4136+ release debug install 2>&1 \
4237 || { dump "ERROR: Failed to build boost for android!" ; exit 1 ; }
4338 } | tee -a $PROGDIR/build.log
4439
4540diff --git a/configs/user-config-boost-1_55_0.jam b/configs/user-config-boost-1_55_0.jam
46- index 666d4c8..762753e 100644
41+ index 666d4c8..4cd3441 100644
4742--- a/configs/user-config-boost-1_55_0.jam
4843+++ b/configs/user-config-boost-1_55_0.jam
49- @@ -41,91 +41,44 @@ import os ;
44+ @@ -39,93 +39,47 @@
45+
46+ import os ;
5047 local AndroidNDKRoot = [ os.environ AndroidNDKRoot ] ;
48+ + local PlatformOS = [ os.environ PlatformOS ] ;
5149
5250 # --------------------------------------------------------------------
5351- # Is same for 8b, 8c and 8d
5452- using gcc : androidR8b
5553+ using clang : androidR8e
5654 :
5755- arm-linux-androideabi-g++
58- + $(AndroidNDKRoot)/toolchains/llvm-3.6/prebuilt/linux -x86_64/bin/clang++
56+ + $(AndroidNDKRoot)/toolchains/llvm-3.6/prebuilt/$(PlatformOS) -x86_64/bin/clang++
5957 :
6058- <archiver>arm-linux-androideabi-ar
61- + <compileflags>--gcc-toolchain="$(AndroidNDKRoot)/toolchains/x86-4.8/prebuilt/linux -x86_64"
59+ + <compileflags>--gcc-toolchain="$(AndroidNDKRoot)/toolchains/x86-4.8/prebuilt/$(PlatformOS) -x86_64"
6260 <compileflags>-fexceptions
6361 <compileflags>-frtti
6462 <compileflags>-fpic
@@ -94,11 +92,11 @@ index 666d4c8..762753e 100644
9492+ <compileflags>-I$(AndroidNDKRoot)/sources/cxx-stl/gnu-libstdc++/4.8/include
9593+ <compileflags>-I$(AndroidNDKRoot)/sources/cxx-stl/gnu-libstdc++/4.8/libs/x86/include
9694+ <linkflags>--target=i686-none-linux-android
97- + <linkflags>--gcc-toolchain="$(AndroidNDKRoot)/toolchains/x86-4.8/prebuilt/linux -x86_64"
95+ + <linkflags>--gcc-toolchain="$(AndroidNDKRoot)/toolchains/x86-4.8/prebuilt/$(PlatformOS) -x86_64"
9896+ <linkflags>--sysroot=$(AndroidNDKRoot)/platforms/android-9/arch-x86
9997 # @Moss - Above are the 'oficial' android flags
10098- <architecture>arm
101- + # <architecture>i686
99+ + <architecture>i686
102100 <compileflags>-fvisibility=hidden
103101 <compileflags>-fvisibility-inlines-hidden
104102 <compileflags>-fdata-sections
0 commit comments