Commit a592c1ed authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

makedep: Use -mno-cygwin for linking modules with no sources.

parent 215c1718
...@@ -4253,10 +4253,16 @@ static void load_sources( struct makefile *make ) ...@@ -4253,10 +4253,16 @@ static void load_sources( struct makefile *make )
add_generated_sources( make ); add_generated_sources( make );
if (!make->use_msvcrt && !has_object_file( make ))
{
strarray_add( &make->extradllflags, "-mno-cygwin" );
make->use_msvcrt = 1;
}
LIST_FOR_EACH_ENTRY( file, &make->includes, struct incl_file, entry ) parse_file( make, file, 0 ); LIST_FOR_EACH_ENTRY( file, &make->includes, struct incl_file, entry ) parse_file( make, file, 0 );
LIST_FOR_EACH_ENTRY( file, &make->sources, struct incl_file, entry ) get_dependencies( file, file ); LIST_FOR_EACH_ENTRY( file, &make->sources, struct incl_file, entry ) get_dependencies( file, file );
if (crosstarget) make->is_cross = (make->testdll || make->use_msvcrt || !has_object_file( make )); make->is_cross = crosstarget && make->use_msvcrt;
if (make->is_cross) if (make->is_cross)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment