X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=examples%2Fcross-compiling-64-bit-windows-binary.mdwn;h=cf4a9b5042e84f9a842f0e4f5d590ad5ec3e3d3e;hb=36e843ff240a01f358a82490b430a1b10064fcce;hp=be17ae2478e864a83009b777f41962887f2bc829;hpb=92c1ef34e1f369278a63eb7ffd0d4cd72ebfbeeb;p=wiki diff --git a/examples/cross-compiling-64-bit-windows-binary.mdwn b/examples/cross-compiling-64-bit-windows-binary.mdwn index be17ae2..cf4a9b5 100644 --- a/examples/cross-compiling-64-bit-windows-binary.mdwn +++ b/examples/cross-compiling-64-bit-windows-binary.mdwn @@ -67,6 +67,7 @@ use the 64-bit MinGW version of GCC and binutils: 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: @@ -105,9 +106,13 @@ tests, so we only build the static library here: ### 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