1.
wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz
tar xvf openssl-1.0.1c.tar.gz
cd openssl-1.0.1c
2.
./config no-asm shared install_prefix=/home/jason/target/usr/local
vi Makefile
<<#CC= cc
>>CC= arm-arago-linux-gnueabi-gcc
<<#CFLAG= -O DEPFLAG= -DOPENSSL_NO_EC_NISTP_64_GCC_128 -DOPENSSL_NO_GMP -DOPENSSL_NO_JPAKE -DOPENSSL_NO_MD2 -DOPENSSL_NO_RC5 -DOPENSSL_NO_RFC3779 -DOPENSSL_NO_SCTP -DOPENSSL_NO_STORE
>>CFLAG= -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_N -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -ldl
<<#AR= ar $(ARFLAGS) r
>>AR= arm-arago-linux-gnueabi-ar $(ARFLAGS) r
3.
make
make install
4.
Bingo!
交叉编译openssl
原创mb6603ea7fc8a1f 博主文章分类:嵌入式 ©著作权
©著作权归作者所有:来自51CTO博客作者mb6603ea7fc8a1f的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Go程序的交叉编译
Go程序的交叉编译是每一位GO程序猿必须掌握的知识点。但是我没有。在昨天,我编译了一个项目,生成了二进制,放到目标机器上,执行报错,错误如下:bash: ./api.linux: cannot execute binary file: Exec format error提示很明显,可执行文件格式错误,不能执行二进制文件。直接定位到了,是目标机器的内核跟我的Macbook Pro不匹配;接着在目标系
cannot execute binar Exec format error GOARCH GO交叉编译 aarch64 -
mipsel-openwrt-linux交叉编译openssl-1.0.2l
mipsel-openwrt-linux交叉编译openssl-1.0.2lmipsel-openwrt-linux交叉编
mips交叉编译openssl linux 交叉编译 perl -
android openssl交叉编译 交叉编译 sysroot
如果在编译时指定了-sysroot=dir 就是为编译时指定了逻辑目录。编译过程中需要引用的库,头文件,如果要到/usr/include目录下去找的情况下,则会在前面加上逻辑目录。
android openssl交叉编译 sed android 搜索 -
使用mingw 对libcURL,openSSL,zLib交叉编译
使用ming
.a文件 交叉编译 头文件 配置文件 perl