Created
April 26, 2017 12:17
-
-
Save artynet/54c19beafc6ed5b6ff38fe8b8cd1e13b to your computer and use it in GitHub Desktop.
Cross compile cURL for mingw32-w64
This file contains hidden or 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
#!/bin/bash | |
### Compilare CURL con toolchain mingw-w64 ### | |
CPPFLAGS="-I/home/arturo/Programmi/win32-cross/include" \ | |
LDFLAGS="-L/home/arturo/Programmi/win32-cross/lib" \ | |
./configure --host=i686-w64-mingw32 \ | |
--with-ssl=/home/arturo/Programmi/win32-cross \ | |
--with-zlib=/home/arturo/Programmi/win32-cross \ | |
--disable-shared --enable-static | |
# To then make the curl tool linked with everything static, I did this: | |
make -j3 | |
rm src/curl.exe | |
make LDFLAGS=-all-static |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment