MIME-Version: 1.0 In-Reply-To: <4818AFFA-B84A-4DCE-8F6B-9CA42E63AF48@...1348...> References: <20100913182543.12172.qmail@...1287...> <4818AFFA-B84A-4DCE-8F6B-9CA42E63AF48@...1348...> Date: Mon, 13 Sep 2010 21:40:57 +0200 Message-ID: From: Alon Bar-Lev Subject: Re: [Openvpn-devel] Windows build was messed up! List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable To: Toby Thain Cc: openvpn-devel@lists.sourceforge.net, Peter Stuge On Mon, Sep 13, 2010 at 9:29 PM, Toby Thain wrote: >>> NMAKE is convenient for Windows builds as it will also happily run >>> under Linux/WINE, targeting both 32 and 64 bit Windows runtimes with >>> the 'freely downloadable' Express toolchain. It may even be possible >>> to combine autotools with the Microsoft compiler, though I haven't >>> tried it (CC=3D"wine cl", etc). >> >> Won't work ever! > > Are you certain? > > Certainly this works: > =C2=A0 =C2=A0 =C2=A0 =C2=A0$ wine nmake /f foo.mak > > I have dozens of projects which cross-build this way for 32 and 64 bit > Windows. autoconf/automake/libtool will not be able to execute the compilers correct= ly. You still need to write and maintain two separate build systems, one for windows and the other for the rest of the world. I would also avoid calling using wine "cross-build"... :)