使用上次编译的 交叉编译工具链来编译openssl
如果没建立交叉编译环境的先阅读:
编译工具链子制作神器 – crosstool-ng
下面开始编译
cd ~
cd build
wget https://www.openssl.org/source/openssl-1.0.2j.tar.gz
tar zxf openssl-1.0.2j.tar.gz
cd openssl-1.0.2j/
export PATH="${PATH}:${HOME}/x-tools/mipsel-superman-linux-gnu/bin"
export CC=mipsel-linux-gcc
export CXX=mipsel-linux-cpp
export AR=mipsel-linux-ar
export RANLIB=mipsel-linux-ranlib
./Configure no-asm no-shared --prefix=${HOME}/x-tools/mipsel-superman-linux-gnu os/compiler:linux-mips32
make
make install
cd ../
另一种安装方式,直接安装到工具链里。
cd ~
cd build
wget https://www.openssl.org/source/openssl-1.0.2j.tar.gz
tar zxf openssl-1.0.2j.tar.gz
cd openssl-1.0.2j/
export PATH="${PATH}:${HOME}/x-tools/mipsel-superman-linux-gnu/bin"
export CC=mipsel-linux-gcc
export CXX=mipsel-linux-cpp
export AR=mipsel-linux-ar
export RANLIB=mipsel-linux-ranlib
./Configure no-asm no-shared --prefix=$HOME/x-tools/mipsel-superman-linux-gnu os/compiler:linux-mips32
make
make install
cd ../
网友评论