Octavian Voicu octavian.voicu@gmail.com writes:
Allows cross-building modules similar to how tests are cross-built.
For each module, a MODULE_cross.exe target is added to cross-build the module. No other targets are affected.
Cross-building doesn't work if the module uses libwine or the associated includes. Currently only notepad_cross.exe can be built using this method, but next patch makes it possible to also build winetest_cross.exe.
[I always found it annoying that make crosstest only builds executables for individual tests. This patch series makes it also build an executable for winetest.]
There's a reason for that. Tests are very limited in what they are allowed to use from Wine, but programs aren't. In particular you can't use any of the portability routines or configure check for cross builds. You really need a separate build tree to cross-compile programs.