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

Alexandre Julliard julliard at winehq.org
Mon Oct 4 15:42:18 CDT 2021


Module: wine
Branch: master
Commit: 63e6eaedeee2643d365e5cd63f38e0b74ac05b44
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=63e6eaedeee2643d365e5cd63f38e0b74ac05b44

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Fri Oct  1 17:21:47 2021 +0200

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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 tools/makedep.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/makedep.c b/tools/makedep.c
index 78befe58603..81f65f52dd8 100644
--- a/tools/makedep.c
+++ b/tools/makedep.c
@@ -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 );




More information about the wine-cvs mailing list