export PATH="/usr/amd64-mingw32msvc/bin:$PATH"
exec "$@"
EOF
+ chmod u+x $HOME/bin/mingw64
If `$HOME/bin` is not already part of your `$PATH`, you need to add it:
### Compiling OpenSSL
Although older versions will not compile, OpenSSL 1.0.0 is easy.
+However, `apt-get source` will have applied
+Debian-specific patches that break cross-compiling a Windows binary.
+You need to undo those patches first.
Do not use the `-j` option when compiling OpenSSL, it will break.
cd $HOME/mingw64/openssl-1.0.0
+ quilt pop -a
mingw64 ./Configure --openssldir=$HOME/mingw64/usr/local mingw64
mingw64 make
mingw64 make install