这几天编译个东西 需要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)