debian 交叉編譯 openssl

使用上次編譯的 交叉編譯工具鏈來編譯openssl如果沒建立交叉編譯環(huán)境的先閱讀:
編譯工具鏈子制作神器 – 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 ../
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關(guān)閱讀更多精彩內(nèi)容

  • 交叉編譯指在一個平臺上生成另一個平臺上的可執(zhí)行代碼。常見的有三種: 在Windows PC上,利用集成開發(fā)環(huán)境(A...
    jingr1閱讀 8,009評論 1 3
  • Android 自定義View的各種姿勢1 Activity的顯示之ViewRootImpl詳解 Activity...
    passiontim閱讀 179,001評論 25 709
  • 最容易淹死的是會水的人,平靜的河面往往暗藏激流涌動。聽了分身術(shù)的第一次分享,我驚出一身冷汗。自認為自我管理領域里學...
    易仁小生在進化閱讀 632評論 2 1
  • 隨便的一個截屏都美如畫,這就是好電影經(jīng)久不衰的秘訣。瑞秋的頭發(fā)閃閃的很漂亮,前幾天重溫這部經(jīng)典,寫了篇隨筆,能把自...
    棉花棒棒Wong閱讀 2,088評論 20 48
  • 作者 余東海 在文章《商鞅主義批判》中提到: 商鞅完全反儒家之道而行,主張連坐,而且發(fā)明了“連相坐之法,造參夷(...
    子曰少懷閱讀 1,791評論 39 10

友情鏈接更多精彩內(nèi)容