@@ -13,52 +13,50 @@ index 40453f7..7ffc050 100755
13
13
+ CXXPATH=$AndroidNDKRoot/toolchains/${TOOLCHAIN}/prebuilt/${PlatformOS}-x86_64/bin/clang++
14
14
+ TOOLSET=clang-androidR8e
15
15
+ ;;
16
- + "10e-rc4 (64-bit)")
16
+ + "10e-rc4 (64-bit)"|"10e (64-bit)" )
17
17
+ TOOLCHAIN=llvm-3.6
18
18
+ CXXPATH=$AndroidNDKRoot/toolchains/${TOOLCHAIN}/prebuilt/${PlatformOS}-x86_64/bin/clang++
19
19
+ TOOLSET=clang-androidR8e
20
20
;;
21
21
*)
22
22
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`
24
25
export PATH=$AndroidBinariesPath:$PATH
25
26
export AndroidNDKRoot
27
+ + export PlatformOS
26
28
export NO_BZIP2=1
27
- + export ICONV_PATH="`pwd`/../../libiconv/x86"
28
-
29
+
29
30
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"
33
32
--layout=versioned \
34
33
--prefix="./../$BUILD_DIR/" \
35
- + boost.locale.posix=off \
36
- + boost.locale.std=on \
37
- + boost.locale.iconv=on \
38
- + boost.locale.icu=off \
39
34
$LIBRARIES \
40
35
- install 2>&1 \
41
36
+ release debug install 2>&1 \
42
37
|| { dump "ERROR: Failed to build boost for android!" ; exit 1 ; }
43
38
} | tee -a $PROGDIR/build.log
44
39
45
40
diff --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
47
42
--- a/configs/user-config-boost-1_55_0.jam
48
43
+++ 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 ;
50
47
local AndroidNDKRoot = [ os.environ AndroidNDKRoot ] ;
48
+ + local PlatformOS = [ os.environ PlatformOS ] ;
51
49
52
50
# --------------------------------------------------------------------
53
51
- # Is same for 8b, 8c and 8d
54
52
- using gcc : androidR8b
55
53
+ using clang : androidR8e
56
54
:
57
55
- 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++
59
57
:
60
58
- <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"
62
60
<compileflags>-fexceptions
63
61
<compileflags>-frtti
64
62
<compileflags>-fpic
@@ -94,11 +92,11 @@ index 666d4c8..762753e 100644
94
92
+ <compileflags>-I$(AndroidNDKRoot)/sources/cxx-stl/gnu-libstdc++/4.8/include
95
93
+ <compileflags>-I$(AndroidNDKRoot)/sources/cxx-stl/gnu-libstdc++/4.8/libs/x86/include
96
94
+ <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"
98
96
+ <linkflags>--sysroot=$(AndroidNDKRoot)/platforms/android-9/arch-x86
99
97
# @Moss - Above are the 'oficial' android flags
100
98
- <architecture>arm
101
- + # <architecture>i686
99
+ + <architecture>i686
102
100
<compileflags>-fvisibility=hidden
103
101
<compileflags>-fvisibility-inlines-hidden
104
102
<compileflags>-fdata-sections
0 commit comments