Skip to content

Commit

Permalink
Fixing compiler problem ( parse tuples )
Browse files Browse the repository at this point in the history
  • Loading branch information
dl1ksv committed Nov 16, 2015
1 parent 614ad29 commit 34e269e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions pythonforandroid/recipes/python2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def prebuild_armeabi(self):
self.apply_patch(join('patches', 'fix-remove-corefoundation.patch'))
self.apply_patch(join('patches', 'fix-dynamic-lookup.patch'))
self.apply_patch(join('patches', 'fix-dlfcn.patch'))
self.apply_patch(join('patches', 'parsetuple.patch'))
# self.apply_patch(join('patches', 'ctypes-find-library.patch'))
self.apply_patch(join('patches', 'ctypes-find-library-updated.patch'))

Expand Down
11 changes: 11 additions & 0 deletions pythonforandroid/recipes/python2/patches/parsetuple.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- Python-2.7.2/configure.orig 2015-06-24 17:47:39.181473779 +0200
+++ Python-2.7.2/configure 2015-06-24 17:48:31.646173137 +0200
@@ -5731,7 +5731,7 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5
$as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; }
save_CFLAGS=$CFLAGS
- CFLAGS="$CFLAGS -Werror"
+ CFLAGS="$CFLAGS -Werror -Wformat"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */

0 comments on commit 34e269e

Please sign in to comment.