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

GHC ghc-devs at haskell.org
Tue Dec 19 22:14:26 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-):

 The specs file is fine:

 {{{
 $ ghc -optl-specs=msvcrt100.specs test.hs -fforce-recomp
 [1 of 1] Compiling Main             ( test.hs, test.o )
 Linking test.exe ...
 }}}

 and checking

 {{{
 > dumpbin /imports test.exe | findstr msvcrt*
     msvcr100.dll
     msvcrt.dll
 }}}

 You will need to change as I mentioned before `lib\package.conf.d\` the
 `base-*.conf` and the `ghc-prim-*.conf` files changing the extra-libraries
 part. To get rid of the remaining references to `msvcrt.dll`.

 I see you're replacing the default spec file, but the new one is quite
 small, so Id'd try just passing it to the compiler as an argument.

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


More information about the ghc-tickets mailing list