1Fedora >= 22 cross-compiling instructions
2=========================================
3
432-bit builds
5-------------
6
7$ sudo dnf install mingw32-openssl mingw32-openssl-static \
8	mingw32-gcc mingw32-gcc-c++ binutils -y
9
10$ ./configure --host=i686-w64-mingw32
11
12$ make -sj4
13
1464-bit builds
15-------------
16
17$ sudo dnf install mingw64-openssl mingw64-openssl-static \
18	mingw64-gcc mingw64-gcc-c++ mingw64-winpthreads-static \
19	mingw64-zlib-static mingw64-libgomp mingw64-binutils -y
20
21$ ./configure --host=x86_64-w64-mingw32
22
23$ make -sj4
24
25Notes
26-----
27
28Ubuntu (and similar systems) do not have a full MinGW environment.
29
30configure on my newest 64 bit Fedora required this:
31
32AR=/usr/bin/x86_64-w64-mingw32-ar STRIP=/usr/bin/x86_64-w64-mingw32-strip \
33	OPENSSL_LIBS="-lssl -lcrypto" ./configure --host=x86_64-w64-mingw32 \
34	--build=x86_64-pc-linux
35
36configure was not setting ar or strip properly. I have wine installed, so
37without the --build the configure was NOT thinking it was doing a cross
38compile. Also, the OPENSSL_LIBS had to be force listed for this cross
39compile to link right.
40