Skip to content

Instantly share code, notes, and snippets.

@artynet
Created April 26, 2017 12:17
Show Gist options
  • Save artynet/54c19beafc6ed5b6ff38fe8b8cd1e13b to your computer and use it in GitHub Desktop.
Save artynet/54c19beafc6ed5b6ff38fe8b8cd1e13b to your computer and use it in GitHub Desktop.
Cross compile cURL for mingw32-w64
#!/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