linux编译支持openssl的curl

1.下载openssl

链接:https://pan.baidu.com/s/1HQUKACEE_Gml-mqGXQC16g 
提取码:9ndk 
 

2.配置openssl

./config -fPIC no-shared --prefix=/home/yiweijiao/libcurl/openssl_lib no-dso no-ssl3

3.make 

4.make install

5.下载curl

https://curl.haxx.se/download.html

6.配置curl

./configure --prefix=/home/yiweijiao/libcurl/curllib -with-ssl=/home/yiweijiao/libcurl/openssl_lib --disable-shared

7. make 

8. make install

 

你可能感兴趣的:(curl静态编译)