[GHC] #10671: inplace/bin/ghc-stage1 doesn't respect --with-ld override

GHC ghc-devs at haskell.org
Sun Jul 26 01:12:19 UTC 2015


#10671: inplace/bin/ghc-stage1 doesn't respect --with-ld override
-------------------------------------+-------------------------------------
        Reporter:  mfox              |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Build System      |                 Version:  7.10.1
      Resolution:                    |                Keywords:
Operating System:  Linux             |            Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by rwbarton):

 It's used by cabal sometimes, I think it's when linking a static Haskell
 library. That is, cabal parses the output of `ghc --info` to determine
 what linker it should invoke. I don't know whether ghc ever directly
 invokes the linker itself.

 (The fact that ghc uses gcc and not ld for the link step is a bit
 confusing, and I'm not sure whether it is documented anywhere. For example
 it means that `-optl` needs to take gcc options, which are not always the
 same as ld options. The description of `-optl` in the man page is just
 "pass option to the linker".)

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


More information about the ghc-tickets mailing list