[PATCH 35/39] Makefile: support building on Windows using MinGW compiler

Nguyen Thai Ngoc Duy pclouds at gmail.com
Fri Apr 16 06:50:24 UTC 2010


On Fri, Apr 16, 2010 at 2:16 AM, Dan Fandrich <dan at coneharvesters.com> wrote:
> On Thu, Apr 15, 2010 at 10:02:20PM +0200, Nguy�n Thái Ng�c Duy wrote:
>> +ifeq ($(CONFIG_TARGET_WIN32),y)
>
> Many parts of this patch series depend on CONFIG_TARGET_WIN32. But it seems
> many instances are really specific to MingW32 rather than generically Win32.
> If someone later does a Cygwin port, or a MSVC port, I imagine much of what's
> conditionally compiled with CONFIG_TARGET_WIN32 won't be relevant. Does it make
> sense to change this variable to CONFIG_TARGET_MINGW32 instead?

As far as I know, there are three big compilers on Windows: MSVC,
MinGW and Cygwin. Cygwin is POSIX emulation and should be used with
CONFIG_TARGET_POSIX. MinGW and MSVC both share runtime libraries.
There are differences between them. I would imagine some more ifdefs
be added based on compiler, but not huge changes. Applets that work
with MinGW should work with MSVC (if someone manages to get busybox
built on that).
-- 
Duy


More information about the busybox mailing list