python源代码下载
编译环境说明
平台:x86_64
操作系统: deepin15.11
交叉编译器:gcc-4.4.7-7215-n64-loongson
本机GCC
版本:6.3.0
搭建交叉编译环境
本机编译安装python3.8.3
python3.8.3交叉编译需要本机有python3.8.x版本python,如果本机已有python3.8.x,则无需执行此步骤
## 进入源代码目录
cd /path/to/Python-3.8.3
## 配置编译环境
./configure --prefix=/opt/x86-python3.8.3
## 编译
make
## 安装
make install
交叉编译
## 进入源代码目录
cd /path/to/Python-3.8.3
## 清理上次编译的中间文件
make clean
## 配置编译环境
export PATH=/opt/x86-python3.8.3/bin:$PATH
CC="/home/dev/App/gcc-4.4.7-7215-n64-loongson/usr/bin/mips64el-redhat-linux-gcc" ./configure --prefix=/opt/python3.8.3 --host=mips64el-redhat-linux --build=x86_64-pc-linux-gnu --disable-ipv6 ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no
## 编译
make CROSS_COMPILE=mips64el-redhat-linux- -j4
## 安装
make install
版权声明:本文为macaiyun0629原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。