X-Git-Url: http://tinc-vpn.org/git/browse?a=blobdiff_plain;f=examples%2Fcross-compiling-windows-binary.mdwn;h=2e850c12a40de8203db48c70a2a5fcd283e6aaf3;hb=7e98de38b86fdeb55fe056d91152d40ea9f01b57;hp=2af6c579f33f7b3d554348e3afae6cb4730ed9dd;hpb=ad8f68f7d9acca385b921530d1b5d4cefc1de531;p=wiki diff --git a/examples/cross-compiling-windows-binary.mdwn b/examples/cross-compiling-windows-binary.mdwn index 2af6c57..2e850c1 100644 --- a/examples/cross-compiling-windows-binary.mdwn +++ b/examples/cross-compiling-windows-binary.mdwn @@ -57,7 +57,8 @@ If `$HOME/bin` is not already part of your `$PATH`, you need to add it: > export PATH="$HOME/bin:$PATH" We use this script to call `./configure` and `make` with the right environment -variables. You can also run the export commands from the `mingw` script by +variables, but only when the `./configure` script doesn't support cross-compilation itself. +You can also run the export commands from the `mingw` script by hand instead of calling the mingw script for every `./configure` or `make` command, or execute `$HOME/bin/mingw $SHELL` to get a shell with these environment variables set, but in this howto we will call it explicitly every @@ -67,10 +68,10 @@ time it is needed. Cross-compiling LZO is easy: -> cd $HOME/lzo2-2.03 -> mingw ./configure --host=mingw32 -> mingw make -> DESTDIR=$HOME/mingw mingw make install +> cd $HOME/mingw/lzo2-2.03 +> ./configure --host=i586-mingw32msvc +> make +> DESTDIR=$HOME/mingw make install ### Compiling Zlib @@ -106,8 +107,8 @@ this is not necessary. > cd $HOME/mingw/tinc > autoreconf -fsi -> mingw ./configure --host=mingw32 --with-openssl=$HOME/mingw/usr/local -> mingw make +> ./configure --host=i586-mingw32msvc --with-openssl=$HOME/mingw/usr/local +> make ### Testing tinc