On Wednesday 22 February 2012 00:12:25 Alon Bar-Lev wrote:
> BEST METHOD - Compile on Linux
> 
> This is a generic method, it can cross compile OpenVPN using any
> toolchain to any environment.
> For Windows, make sure you have mingw-w64 toolchain.
> We are using nsis so we can also package files at Linux.
> 
> $ cd generic
> $ IMAGEROOT=`pwd`/image-win32 CHOST=i686-w64-mingw32
> CBUILD=x86_64-pc-linux-gnu ./build
> $ IMAGEROOT=`pwd`/image-win64 CHOST=x86_64-w64-mingw32
> CBUILD=x86_64-pc-linux-gnu ./build

I was cross compiling for Windows previously doing something very standard 
like `./configure --host=i686-w64-mingw32 ...` followed by `make`. What the 
rationale behind moving away from this way?

Heiko
-- 
Heiko Hund | Software Engineer | Phone +49-721-25516-237 | Fax -200
Astaro a Sophos Company | Amalienbadstr. 41 Bau 52 | 76227 Karlsruhe | Germany
Commercial Register: Mannheim HRA 702710 | Headquarter Location: Karlsruhe
 
Represented by the General Partner Astaro Verwaltungs GmbH
Amalienbadstraße 41 Bau 52 | 76227 Karlsruhe | Germany 
Commercial Register: Mannheim HRB 708248 | Executive Board: Gert Hansen,
Markus Hennig, Jan Hichert, Günter Junk, Dr. Frank Nellissen


Reply via email to