[GHC] #14537: Do not link to msvcrt.dll
GHC
ghc-devs at haskell.org
Thu Nov 30 21:13:59 UTC 2017
#14537: Do not link to msvcrt.dll
-------------------------------------+-------------------------------------
Reporter: johndoe | Owner: (none)
Type: feature request | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.1
(Linking) |
Resolution: invalid | Keywords:
Operating System: Windows | Architecture:
| Unknown/Multiple
Type of failure: Other | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Phyx-):
Sorry for the delay, haven't had much time to spend on GHC. As you know we
depend on GCC which gets it's crt definitions from the mingw-w64 project.
As far as I am aware of, they were supposed to support XP until v5 of the
crt release https://sourceforge.net/p/mingw-w64/mailman/message/35465862/
but this function was added in 2010:
{{{
commit f532681f435090c3a0812bf02969821b211d5ca1
Author: Jonathan Yong <10walls at gmail.com>
Date: Mon Aug 2 06:59:06 2010 +0000
2010-07-26 Jonathan Yong <jon_y at sourceforge.net>
* lib32/msvcrt.def: Added secure and locale type symbols from
Win7.
* lib64/msvcrt.def: Likewise.
git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@3079
4407c894-4637-0410-b4f5-ada5f102cad1
}}}
Which is why it's using it. But while that means I could in theory have a
workaround for XP for this, it won't do you much good. Starting with 8.6
we're going to use system APIs only available in Windows Vista SP1 and
higher (which is our minimum supported version, but we'll likely be moving
this to Windows 7 too).
As @refold said we don't support XP anymore, and I don't think it's
feasible for us to, it requires too many workarounds in the runtime, and
in some cases just not having a feature.
So while I could solve this particular issue, I'm sure it still won't be
useable.
Sorry.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14537#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list