debian 交叉编译 openssl

作者: 方圆百里找对手 | 来源:发表于2017-05-27 09:31 被阅读129次

使用上次编译的 交叉编译工具链来编译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 ../

相关文章

网友评论

    本文标题:debian 交叉编译 openssl

    本文链接:https://www.haomeiwen.com/subject/nhgffxtx.html