Cross compiling tests

Hans Leidekker hans at
Sat Apr 12 16:31:27 CDT 2003

On 12 Apr 2003, Alexandre Julliard wrote:

> > Second major problem happens at the build stage. The Makefile for
> > a test specifies -L$(DLLDIR) when linking the test executables, which
> > is where the *Wine* libraries reside. I think this is wrong, we 
> > should link against the target platform libraries (MinGW in this
> > case) when cross compiling.
> The problem is that Mingw doesn't include import libraries for all the
> dlls we need, so some tests will fail to link. A better solution might
> be to give priority to Mingw libraries while still falling back to the
> Wine ones if needed.

Well, of the dlls that have a test in Wine MinGW only misses urlmon. If
you look at the objective of cross compiling a test, it would normally
not make sense to cross compile a target that needs a library that the
target platform lacks. But of course this situation different: the test
executable is going run on Windows, not MinGW (though that may change

So I guess -L$(DLLDIR) is going to stay and MinGW needs to be fixed so
it can properly link our tests. I'm keeping my fingers crossed ;-)


More information about the wine-devel mailing list