@@ -20,8 +20,15 @@ index 40453f7..7ffc050 100755
20
20
;;
21
21
*)
22
22
echo "Undefined or not supported Android NDK version!"
23
- @@ -404,8 +409,8 @@ echo "Building boost for android"
24
- threading=multi \
23
+ @@ -391,6 +396,7 @@ echo "Building boost for android"
24
+ export AndroidBinariesPath=`dirname $CXXPATH`
25
+ export PATH=$AndroidBinariesPath:$PATH
26
+ export AndroidNDKRoot
27
+ + export PlatformOS
28
+ export NO_BZIP2=1
29
+
30
+ cxxflags=""
31
+ @@ -405,7 +411,7 @@ echo "Building boost for android"
25
32
--layout=versioned \
26
33
--prefix="./../$BUILD_DIR/" \
27
34
$LIBRARIES \
@@ -31,22 +38,25 @@ index 40453f7..7ffc050 100755
31
38
} | tee -a $PROGDIR/build.log
32
39
33
40
diff --git a/configs/user-config-boost-1_55_0.jam b/configs/user-config-boost-1_55_0.jam
34
- index 666d4c8..762753e 100644
41
+ index 666d4c8..4cd3441 100644
35
42
--- a/configs/user-config-boost-1_55_0.jam
36
43
+++ b/configs/user-config-boost-1_55_0.jam
37
- @@ -41,91 +41,44 @@ import os ;
44
+ @@ -39,93 +39,47 @@
45
+
46
+ import os ;
38
47
local AndroidNDKRoot = [ os.environ AndroidNDKRoot ] ;
48
+ + local PlatformOS = [ os.environ PlatformOS ] ;
39
49
40
50
# --------------------------------------------------------------------
41
51
- # Is same for 8b, 8c and 8d
42
52
- using gcc : androidR8b
43
53
+ using clang : androidR8e
44
54
:
45
55
- arm-linux-androideabi-g++
46
- + $(AndroidNDKRoot)/toolchains/llvm-3.6/prebuilt/linux -x86_64/bin/clang++
56
+ + $(AndroidNDKRoot)/toolchains/llvm-3.6/prebuilt/$(PlatformOS) -x86_64/bin/clang++
47
57
:
48
58
- <archiver>arm-linux-androideabi-ar
49
- + <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"
50
60
<compileflags>-fexceptions
51
61
<compileflags>-frtti
52
62
<compileflags>-fpic
@@ -82,7 +92,7 @@ index 666d4c8..762753e 100644
82
92
+ <compileflags>-I$(AndroidNDKRoot)/sources/cxx-stl/gnu-libstdc++/4.8/include
83
93
+ <compileflags>-I$(AndroidNDKRoot)/sources/cxx-stl/gnu-libstdc++/4.8/libs/x86/include
84
94
+ <linkflags>--target=i686-none-linux-android
85
- + <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"
86
96
+ <linkflags>--sysroot=$(AndroidNDKRoot)/platforms/android-9/arch-x86
87
97
# @Moss - Above are the 'oficial' android flags
88
98
- <architecture>arm
0 commit comments