[GHC] #15837: Hadrian should build dynamically linked ghc binary

GHC ghc-devs at haskell.org
Thu Nov 29 17:22:59 UTC 2018


#15837: Hadrian should build dynamically linked ghc binary
-------------------------------------+-------------------------------------
        Reporter:  davide            |                Owner:  davide
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Build System      |              Version:  8.6.1
  (Hadrian)                          |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D5385
       Wiki Page:                    |  Phab:D5327
-------------------------------------+-------------------------------------

Comment (by Alp Mestanogullari <alpmestan@…>):

 In [changeset:"79d5427e1f9de02c0b171bf5db46b6b49c6f85e3/ghc"
 79d5427e/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="79d5427e1f9de02c0b171bf5db46b6b49c6f85e3"
 Hadrian: support dynamically linking ghc

 * (#15837 point 5) Use the -rpath gcc option and using the $ORIGIN
 variable which the dynamic linker sets to the location of the ghc
 binary.
 * (#15837 point 4) "-fPIC -dynamic" options are used when building ghc
 when either ghc or the rts have a dynamic way.
 * (#15837 point 7) "-shared -dynload deploy" options are only used when
 linking a library (no longer when linking a program).

 Reviewers: bgamari, alpmestan

 Reviewed By: alpmestan

 Subscribers: adamse, rwbarton, carter

 Differential Revision: https://phabricator.haskell.org/D5281
 }}}

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


More information about the ghc-tickets mailing list