curl 交叉编译 支持http2和openssl

touch run.sh
chmod 755 run.sh
mkdir build
cd build
../run.sh

run.sh

#!/bin/bash
#cd /build

../configure \
--host=aarch64-linux-android \
--with-ssl="/home/soft/openssl-1.1.1b/build/prefix" \
--with-nghttp2="/home/soft/nghttp2-1.38.0/build/prefix" \
--prefix="/home/soft/curl-7.64.1/build/prefix"

#将CCLD = $(CC)  替换为 CCLD = $(CC) -lnghttp2
#make -j9 V=1
#make install

转载于:https://www.cnblogs.com/smallredness/p/10840617.html

你可能感兴趣的:(curl 交叉编译 支持http2和openssl)