X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=examples%2Fcross-compiling-64-bit-windows-binary.mdwn;h=a3bb24ff525fb4e18a170a8abb3fe6b3f4311209;hb=5ceefb161518b0649dd386a1d3c406a55bd424da;hp=f35ab4cf58803a841ea39e560d1e8cb40ab2a8b6;hpb=7e9013f3810b5d012a3419c84732f605f051a1af;p=wiki diff --git a/examples/cross-compiling-64-bit-windows-binary.mdwn b/examples/cross-compiling-64-bit-windows-binary.mdwn index f35ab4c..a3bb24f 100644 --- a/examples/cross-compiling-64-bit-windows-binary.mdwn +++ b/examples/cross-compiling-64-bit-windows-binary.mdwn @@ -21,7 +21,7 @@ The idea is simple: There are only a few packages that need to be installed as root to get started: - sudo apt-get install mingw-w64 git-core wget + sudo apt-get install mingw-w64 git-core wget quilt sudo apt-get build-dep tinc Other Linux distributions may also have 64-bit MinGW packages, use their respective @@ -49,7 +49,7 @@ up the necessary environment variables so configure scripts and Makefiles will use the 64-bit MinGW version of GCC and binutils: mkdir $HOME/bin - cat >$HOME/bin/mingw64 << EOF + cat >$HOME/bin/mingw64 << 'EOF' #!/bin/sh PREFIX=x86_64-w64-mingw32 export CC=$PREFIX-gcc @@ -91,8 +91,8 @@ Cross-compiling Zlib is also easy, but a plain `make` failed to compile the tests, so we only build the static library here: cd $HOME/mingw64/zlib-1.2.7.dfsg - mingw64 ./configure - mingw64 make libz.a + mingw64 ./configure --static + mingw64 make DESTDIR=$HOME/mingw64 mingw64 make install ### Compiling OpenSSL @@ -118,5 +118,5 @@ this is not necessary. cd $HOME/mingw64/tinc autoreconf -fsi - ./configure --host=x86_64-w64-mingw32 --with-openssl=$HOME/mingw64/usr/local + ./configure --host=x86_64-w64-mingw32 --with-zlib=$HOME/mingw64/usr/local make