Created
November 29, 2015 17:22
-
-
Save qigao/298524e1ce969fe8f253 to your computer and use it in GitHub Desktop.
Compile and use static libcurl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$./configure --enable-shared=no --without-zlib --disable-ftp --disable-ldap --disable-rtsp --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smb --disable-smtp --disable-gopher --without-ssl --without-libssh2 --without-libidn --without-librtmp --disable-dict --disable-file | |
$ make install | |
$ gcc -I/usr/local/include -g -O2 -DCURL_STATICLIB -c post.c | |
$ gcc -s -o post.exe post.o -L/usr/local/lib -lcurl -lws2_32 | |
$ gcc -s -o post.dll post.o -L/usr/local/lib -lcurl -lws2_32 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment