diff -r be8b133d5d3e README --- a/README Wed Nov 02 15:55:26 2016 -0400 +++ b/README Wed Nov 02 21:21:45 2016 +0100 @@ -85,6 +85,32 @@ performance gains. +Cross Compiling on unix +----------------------- + +The cross-compilation of Python requires a natively installed python to run +Python scripts at multiple stages in the build process. The path to this +native python must be set in the $PATH environment variable and it must have +the same package version as the Python source being cross-built (for example +python3.6). + +One way to ensure that the previous rule is followed is to build the native +python from the same source first. For example: + + mkdir python-native cross-build install + cd python-native + ../configure && make + export PATH=$(pwd):$PATH + cd ../cross-build + ../configure --host= --build= \ + --enable-ipv6 ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no \ + && make DESTDIR=../install install + +If the target does not support ipv6, use --disable-ipv6 instead. If the target +Python can use /dev/ptmx or /dev/ptc to implement os.openpty(), set the +corresponding argument to "yes". + + What's New ----------