Search code examples
linuxwindowswxwidgetscross-compiling

wxWidgets cross compilation from linux to windows - what does "--host=" mean?


I'm cross compiling wxWidgets using that tutorial. Could anyone explain me what --host=i586-mingw32msvc does?
I know that prefix give the information where cross-compiler is. However, I compiled minGW from source manually, because then I can use the newest GCC so I can't only copy&paste.
Prefix should be prefix=/usr/local/i386-mingw32 because there is my cross-compiler. And what about host?
I use Lubuntu 14.04 LTS AMD64 .


Solution

  • --host is a typical ./configure option that specifies the "host" system for the program to run on, i.e. the configuration that you will be compiling for.

    In other words, --host activates cross-compiling behaviour if you specify a host that is not the same as your build machine.

    The format of the host spec differs occasionally between platforms, but it generally takes the form

    processorfamily-osfamily[-osversion][-abi]