[CRT] Fix link issues with __ftol2 when compiling for NT6

__ftol2 is exported from msvcrt on NT6+, not from ntdll for some reason. So native apps still need to statically link _ftol2 and _ftoul2_legacy, but apps linking to msvcrt only need to statically link _ftoul2_legacy (via msvcrtex), when on NT6+.
This commit is contained in:
Timo Kreuzer 2024-08-29 20:57:30 +03:00
parent 95c340dfb7
commit f80d978fc0
5 changed files with 81 additions and 61 deletions

View file

@ -40,6 +40,7 @@ if(ARCH STREQUAL "i386")
math/i386/floor_asm.s
math/i386/ftol_asm.s
math/i386/ftol2_asm.s
math/i386/ftoul2_legacy_asm.s
math/i386/log_asm.s
math/i386/log10_asm.s
math/i386/pow_asm.s