mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-12-28 07:30:10 +00:00
[host] windows: trick MinGW into not using memcpy from ntdll
MinGW seems to decide at random whether it wants to use memcpy from mscvrt.dll or ntdll.dll. Currently, on Debian buster, ntdll.dll is chosen, while on sid, mscvrt.dll is chosen. This commit declares a new .def file for ntdll containing only the functions we want to link from ntdll.dll, and generates ntdll.a from it with dlltool. This way, MinGW will never be tempted to link functions like memcpy from ntdll.dll.
This commit is contained in:
7
host/platform/Windows/ntdll.def
Normal file
7
host/platform/Windows/ntdll.def
Normal file
@@ -0,0 +1,7 @@
|
||||
; This file is used to trick MinGW to not like stuff like memcpy from ntdll.dll.
|
||||
; See CMakeLists.txt for how this is compiled.
|
||||
|
||||
LIBRARY "ntdll.dll"
|
||||
EXPORTS
|
||||
NtDelayExecution
|
||||
NtSetTimerResolution
|
||||
Reference in New Issue
Block a user