[GHC] #14537: Do not link to msvcrt.dll

GHC ghc-devs at haskell.org
Wed Nov 29 14:05:19 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-):

 Also just to clarify, I'm not trying to be difficult, even though it may
 come across that way.

 However not linking against `msvcrt.dll` imposes serious constraints and
 comes with quite a few caveats. So this isn't as simple as you might
 think, this would require not only GHC changes but also changing GCC's
 default behaviour.

 That said, if you have an application that does not explicitly request to
 use this symbol you say is missing I'd be happy to take a look at this
 given a repro.

 Also do note that there was a mixup with some crt symbols in the mingw-w64
 GCC 6.2 that we bundle. This should have however resulted in linker errors
 and not incorrect linking. You could try GHC 8.0 to see if it's a result
 of that issue.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14537#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list