debian 交叉编译 openssl

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

直接安装到工具链里。

未经允许不得转载:SuperMan's blog » debian 交叉编译 openssl

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址