makedep: Use -fno-builtin for CRT DLLs on PE targets.

Just like we do for other targets with cross compiler enabled. Fixes
PE-only i686 build with llvm-mingw, which otherwise uses unexpected
optimizations.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2021-10-01 17:21:47 +02:00 committed by Alexandre Julliard
parent 7c523f4867
commit 63e6eaedee
1 changed files with 2 additions and 0 deletions

View File

@ -3004,6 +3004,8 @@ static void output_source_default( struct makefile *make, struct incl_file *sour
{
output_filenames( dll_flags );
if (source->use_msvcrt) output_filenames( msvcrt_flags );
if (!*dll_ext && make->module && is_crt_module( make->module ))
output_filename( "-fno-builtin" );
}
output_filenames( extra_cflags );
output_filenames( cpp_flags );