File tree 3 files changed +33
-3
lines changed
3 files changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ function push_arm() {
168
168
export CXXFLAGS=" $CFLAGS "
169
169
170
170
# that could be done only for darwin platform, but it doesn't hurt.
171
- export LDFLAGS=" -lm"
171
+ # export LDFLAGS="-lm"
172
172
173
173
# this must be something depending of the API level of Android
174
174
PYPLATFORM=$( $PYTHON -c ' from __future__ import print_function; import sys; print(sys.platform)' )
@@ -338,8 +338,11 @@ function run_prepare() {
338
338
debug " API level set to $ANDROIDAPI "
339
339
340
340
export NDKPLATFORM=" $ANDROIDNDK /platforms/android-$ANDROIDAPI /arch-arm"
341
- export ARCH=" armeabi"
342
- # export ARCH="armeabi-v7a" # not tested yet.
341
+ if [ $ANDROIDAPI -lt 21 ]; then
342
+ export ARCH=" armeabi"
343
+ else
344
+ export ARCH=" armeabi-v7a" # Required for android 21
345
+ fi
343
346
344
347
info " Check NDK location"
345
348
if [ ! -d " $NDKPLATFORM " ]; then
Original file line number Diff line number Diff line change
1
+ --- Python-2.7.2/Modules/timemodule.orig.c 2015-06-17 09:45:56.170192962 +0200
2
+ +++ Python-2.7.2/Modules/timemodule.c 2015-06-17 09:49:25.069947821 +0200
3
+ @@ -27,6 +27,10 @@
4
+ #include <io.h>
5
+ #endif
6
+
7
+ + #ifdef ANDROID
8
+ + #undef HAVE_FTIME
9
+ + #endif /* ANdroid-21 has no timeb.h */
10
+ +
11
+ #ifdef HAVE_FTIME
12
+ #include <sys/timeb.h>
13
+ #if !defined(MS_WINDOWS) && !defined(PYOS_OS2)
14
+ --- Python-2.7.2/configure.orig 2015-06-24 17:47:39.181473779 +0200
15
+ +++ Python-2.7.2/configure 2015-06-24 17:48:31.646173137 +0200
16
+ @@ -5731,7 +5731,7 @@
17
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5
18
+ $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; }
19
+ save_CFLAGS=$CFLAGS
20
+ - CFLAGS="$CFLAGS -Werror"
21
+ + CFLAGS="$CFLAGS -Werror -Wformat"
22
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23
+ /* end confdefs.h. */
24
+
Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ function prebuild_python() {
33
33
try patch -p1 < $RECIPE_python /patches/fix-dynamic-lookup.patch
34
34
try patch -p1 < $RECIPE_python /patches/fix-dlfcn.patch
35
35
try patch -p1 < $RECIPE_python /patches/ctypes-find-library.patch
36
+ if [ $ANDROIDAPI -gt 19 ]; then
37
+ try patch -p1 < $RECIPE_python /patches/android-21.patch
38
+ fi
36
39
37
40
system=$( uname -s)
38
41
if [ " X$system " == " XDarwin" ]; then
You can’t perform that action at this time.
0 commit comments