交叉编译python

作者:fly 发布于:2016-12-28 13:49 分类:Linux

使用主机源码内的python复制到交叉编译内的python_pc
使用主机源码内的pgen复制到交叉编译内的pgen_pc
patch -p1  ../Python-2.7.3-xcompile.patch
 
./configure 
CC=/usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-gcc 
CXX=/usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-g++ 
AR=/usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-ar 
RANLIB=/usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-ranlib 
LD=/usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-ld 
--host=arm-none-linux-gnueabi  
--prefix=/usr/local/arm/python  
ac_cv_file__dev_zero=yes 
ac_cv_func_setpgrp_void=yes 
apr_cv_process_shared_works=yes 
apr_cv_mutex_robust_shared=yes 
apr_cv_tcp_nodelay_with_cork=yes 
ap_void_ptr_lt_long=no 
ap_cv_void_ptr_lt_long=no 
LDFLAGS=-lpthread -disable-shared 
--build=arm 
READELF=/usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-readelf -
-disable-ipv6 
ac_cv_file__dev_ptmx=0 a
c_cv_file__dev_ptc=0



make HOSTPYTHON=./python_pc 
HOSTPGEN=./Parser/pgen_pc 
BLDSHARED="arm-none-linux-gnueabi-gcc -shared" 
CROSS_COMPILE=arm-none-linux-gnueabi- 
CROSS_COMPILE_TARGET=yes




make install HOSTPYTHON=./python_pc 
HOSTPGEN=./Parser/pgen_pc 
BLDSHARED="arm-none-linux-gnueabi-gcc -shared" 
CROSS_COMPILE=arm-none-linux-gnueabi- 
CROSS_COMPILE_TARGET=yes


发表评论:

 
Powered by emlog sitemap