Commit 16a9e2dc authored by Simon Marlow's avatar Simon Marlow

Windows: load msvcrt and kernel32 manually

parent d282b3c7
......@@ -1054,6 +1054,16 @@ initLinker( void )
mmap_32bit_base = (void*)RtsFlags.MiscFlags.linkerMemBase;
}
#endif
#if defined(mingw32_HOST_OS)
/*
* These two libraries cause problems when added to the static link,
* but are necessary for resolving symbols in GHCi, hence we load
* them manually here.
*/
addDLL("msvcrt");
addDLL("kernel32");
#endif
}
/* -----------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment