openssl交叉编译

这几天编译个东西 需要openssl
下载了openssl-1.0.1s.tar.gz
一直编译不过 不是 -m64 就是elfclass32 什么的 搞的怀疑人生
删掉重新下了一个openssl-1.1.0g.tar.gz
瞬间解决战斗

大概步骤写一下
./config no-asm shared –prefix=/usr/local/openssl
修改Makefile 将里面的的CROSS_COMPILE 填上自己的编译器
make
sudo make install -i

OK

ubuntu 16.04

arm-linux-gnueabihf-gcc -v

Using built-in specs.
COLLECT_GCC=arm-linux-gnueabihf-gcc
COLLECT_LTO_WRAPPER=/home/zhuanghj/Downloads/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf/bin/../libexec/gcc/arm-linux-gnueabihf/4.9.3/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: /home/tcwg-buildslave/workspace/tcwg-make-release/label/tcwg-x86_64/target/arm-linux-gnueabihf/snapshots/gcc-linaro-4.9-2015.05/configure SHELL=/bin/bash –with-bugurl=https://bugs.linaro.org –with-mpc=/home/tcwg-buildslave/workspace/tcwg-make-release/label/tcwg-x86_64/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu –with-mpfr=/home/tcwg-buildslave/workspace/tcwg-make-release/label/tcwg-x86_64/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu –with-gmp=/home/tcwg-buildslave/workspace/tcwg-make-release/label/tcwg-x86_64/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu –with-gnu-as –with-gnu-ld –disable-libstdcxx-pch –disable-libmudflap –with-cloog=no –with-ppl=no –with-isl=no –disable-nls –enable-c99 –with-tune=cortex-a9 –with-arch=armv7-a –with-fpu=vfpv3-d16 –with-float=hard –with-mode=thumb –disable-multilib –enable-multiarch –with-build-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release/label/tcwg-x86_64/target/arm-linux-gnueabihf/_build/sysroots/arm-linux-gnueabihf –enable-lto –enable-linker-build-id –enable-long-long –enable-shared –with-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release/label/tcwg-x86_64/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu/arm-linux-gnueabihf/libc –enable-languages=c,c++,fortran,lto –enable-checking=release –disable-bootstrap –with-bugurl=https://bugs.linaro.org –build=x86_64-unknown-linux-gnu –host=x86_64-unknown-linux-gnu –target=arm-linux-gnueabihf –prefix=/home/tcwg-buildslave/workspace/tcwg-make-release/label/tcwg-x86_64/target/arm-linux-gnueabihf/_build/builds/destdir/x86_64-unknown-linux-gnu
Thread model: posix
gcc version 4.9.3 20150413 (prerelease) (Linaro GCC 4.9-2015.05)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值