mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[CMAKE] Statically link _ftol2/__ftoul2_legacy to libntdll
This is needed to resolve symbols of native applications like usetup, when compiled with latest VS.
This commit is contained in:
parent
f637e6b809
commit
64b58397f3
2 changed files with 14 additions and 0 deletions
|
@ -73,3 +73,8 @@ endif()
|
|||
add_pch(ntdll include/ntdll.h "${PCH_SKIP_SOURCE}")
|
||||
add_dependencies(ntdll ntstatus asm)
|
||||
add_cd_file(TARGET ntdll DESTINATION reactos/system32 NO_CAB FOR all)
|
||||
|
||||
# Newer VS versions link to _ftol2 / _ftoul2_legacy
|
||||
if(MSVC AND ARCH STREQUAL "i386")
|
||||
target_link_libraries(libntdll ftol2)
|
||||
endif()
|
||||
|
|
|
@ -45,3 +45,12 @@ add_library(user32_wsprintf
|
|||
|
||||
add_dependencies(user32_wsprintf psdk)
|
||||
target_compile_definitions(user32_wsprintf PRIVATE _USER32_WSPRINTF)
|
||||
|
||||
if(MSVC AND ARCH STREQUAL "i386")
|
||||
add_asm_files(ftol2_asm
|
||||
math/i386/ftol2_asm.s
|
||||
)
|
||||
add_library(ftol2 ${ftol2_asm})
|
||||
set_target_properties(ftol2 PROPERTIES LINKER_LANGUAGE "C")
|
||||
add_dependencies(ftol2 asm)
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue