makefiles: Build modules that use msvcrt as PE builtins.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2019-04-24 11:42:17 +02:00
parent 76e6883a5e
commit 1f0a9c4c29
1 changed files with 3 additions and 1 deletions

View File

@ -2077,7 +2077,8 @@ static int is_cross_compiled( struct makefile *make )
!make->is_win16 &&
!strarray_exists( &make->imports, "kernel" ) &&
(make->testdll ||
!make->object_files.count));
!make->object_files.count ||
strarray_exists( &make->extradllflags, "-mno-cygwin" )));
}
@ -2951,6 +2952,7 @@ static void output_source_default( struct makefile *make, struct incl_file *sour
find_src_file( make, replace_extension( source->name, ".c", ".spec" )));
int need_cross = (crosstarget &&
(make->testdll ||
strarray_exists( &make->extradllflags, "-mno-cygwin" ) ||
(source->file->flags & FLAG_C_IMPLIB) ||
(make->module && make->staticlib)));
int need_obj = (!need_cross ||