curl static

1.  ./configure --prefix=/usr/local/curl --disable-shared --enable-static --without-libidn --without-ssl --without-librtmp --without-gnutls --without-nss --without-libssh2 --without-zlib --without-winidn --disable-rtsp --disable-ldap --disable-ldaps --disable-ipv6

2. make curl_LDFLAGS=-all-static

3. make install curl_LDFLAGS=-all-static

4.头文件在:/usr/local/include  下  库文件在:/usr/local/lib 下

你可能感兴趣的:(curl static)