[issue23496] Steps for Android Native Build of Python 3.4.2
Cyd Haselton
report at bugs.python.org
Fri Mar 6 20:52:35 CET 2015
Cyd Haselton added the comment:
Ryan,
Here are the changes to pyconfig.h. I left out this
#define ANDROID 1
because GCC 4.8.x and up have -mandroid -mbionic that define __ANDROID__ so I've been using that.
#define HAVE_BROKEN_MBSTOWCS 1
#undef HAVE_DEV_PTMX
#undef HAVE_GETHOSTBYNAME_R
#undef HAVE_MBRTOWC
#define HAVE_NCURSES_H 1 /* This only if you've cross compiled curses */
#undef HAVE_SETLOCALE
#undef HAVE_WCSCOLL
#undef HAVE_WCSFTIME
#undef HAVE_WCSXFRM
The following changes were made to Modules/Setup
*shared*
<snip>
array arraymodule.c -L. -lpython3.4m # array objects
cmath cmathmodule.c _math.c -L. -lpython3.4m -lm # complex math library functions
math mathmodule.c _math.c -L. -lpython3.4m -lm # math library functions, e.g. sin()
_struct _struct.c -L. -lpython3.4m # binary structure packing/unpacking
time timemodule.c -L. -lpython3.4m -lm # time operations and variables
_testcapi _testcapimodule.c -L. -lpython3.4m # Python C API test module
_random _randommodule.c -L. -lpython3.4m # Random number generator
_elementtree -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI _ele
menttree.c -L -lpython3.4m # elementtree accelerator
_pickle _pickle.c -L. -lpython3.4m # pickle accelerator
_datetime _datetimemodule.c -L. -lpython3.4m # datetime accelerator
_bisect _bisectmodule.c -L. -lpython3.4m # Bisection algorithms
unicodedata unicodedata.c -L. -lpython3.4m # static Unicode character database
<snip>
#grp grpmodule.c # grp(3) select selectmodule.c -lm -L. -lpython3.4m # select(2); not on ancient System V
# CSV file helper
_csv _csv.c -L. -lpython3.4m
# Socket module helper for socket(2)
_socket socketmodule.c -L. -lpython3.4m
# Socket module helper for SSL support; you must comment out the other # socket line above, and possibly edit the SSL variable: #SSL=/usr/local/ssl _ssl _ssl.c \ -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \ -L. -lpython3.4m -L$(SSL)/lib -lssl -lcrypto
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23496>
_______________________________________
More information about the Python-bugs-list
mailing list