libcurl + openssl 支持HTTPS最小编译(ARM)

1、下载 openssl-1.1.1c.tar.gz

tar -zxvf openssl-1.1.1c.tar.gz

cd openssl-1.1.1c

编译选项如下:

./Configure --prefix=/home/zhangsan/openssl --cross-compile-prefix={填写你的交叉编译器} linux-armv4 -march=armv7-a -D__ARM_MAX_ARCH__=7 no-asm no-async shared no-md2 no-md4 no-mdc2 no-poly1305 no-blake2 no-siphash no-sm3 no-rc2 no-rc4 no-rc5 no-idea no-aria no-bf no-cast no-camellia no-seed no-sm4 no-chacha no-ec no-dsa no-sm2 no-dso no-engine no-err no-comp no-ocsp no-cms no-ts no-srp no-cmac no-ct 

编译 && 安装

make && make install 

2、下载 curl-7.63.0.tar.bz2

tar jxvf curl-7.63.0.tar.bz2

cd curl-7.63.0

编译选项:

env LDFLAGS=-R/home/zhangsan/openssl/lib ./configure --prefix=/home/zhangsan/curl CC={填写你的交叉编译器} --host=arm-linux --with-ssl=/home/zhangsan/openssl

编译 && 安装

make && make install 

最终的大小:

 

 

posted @ 2019-11-01 10:19  风中奔跑的蜗牛  阅读(1193)  评论(0编辑  收藏  举报