From 0c8a3181c0ad21051a291d82cb24979bfa3bf2c4 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 17 Nov 2024 19:29:16 +0900 Subject: Win32: Remove unreferenced COMDAT from object files Windows 11 SDK Version 10.0.26100.0 introduced a new internal inline function in ucrt/corecrt_math.h. Even it appears in object files and will be included in the DEF file, it will be removed from the DLL and result in a linker error. --- win32/Makefile.sub | 3 +++ 1 file changed, 3 insertions(+) diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 8cf0b03a7f..f5b76bbe02 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -158,6 +158,9 @@ OPTFLAGS = -O2b2xg- OPTFLAGS = -O2sy- !endif !endif +!if $(MSC_VER) >= 1900 +OPTFLAGS = $(OPTFLAGS) -Zc:inline +!endif !if !defined(incflags) incflags = !endif -- cgit v1.2.3