如需轉載請標明出處:http://blog.csdn.net/itas109
技術交流:129518033
$ wget https://www.python.org/ftp/python/3.10.5/Python-3.10.5.tar.xz
解壓
$ tar Jcvf Python-3.10.5.tar.xz
交叉編譯需要用到本地編譯的Python
$ mkdir bin
$ cd bin
$ ../configure -prefix=`pwd`/install --enable-shared CFLAGS=-fPIC
$ make -j8
$ make install
這裡用的交叉編譯器為gcc-linaro-aarch64-linux-gnu-4.9
$ mkdir bin_aarch64
$ cd bin_aarch64
$ export PATH=/usr/local/aarch64/gcc-linaro-aarch64-linux-gnu-4.9-2014.07_linux/bin:$PATH
$ ../configure --host=aarch64-linux-gnu --build=aarch64 -prefix=`pwd`/install --enable-shared CFLAGS=-fPIC --disable-ipv6 ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no
$ make -j8
$ make install
License
License under CC BY-NC-ND 4.0: 署名-非商業使用-禁止演繹
如需轉載請標明出處:http://blog.csdn.net/itas109
技術交流:129518033
Reference:
NULL