使用上次編譯的 交叉編譯工具鏈來編譯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 ../