cpython编译

https://github.com/python/cpython

中间需要编译binutils-2.28
/configure –prefix=/opt/binutils –host=arm-linux-gnueabihf CC=arm-linux-gnueabihf-gcc
make -j4
sudo make install -i

cpython
./configure –prefix=/opt/cpython –host=arm-linux-gnueabihf CC=arm-linux-gnueabihf-gcc –build=x86 –disable-ipv6 ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no
make -j4
sudo make install -i

你可能感兴趣的:(linux)