[commit: ghc] master: Hadrian: support dynamically linking ghc (79d5427)

git at git.haskell.org git at git.haskell.org
Thu Nov 29 17:23:06 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/79d5427e1f9de02c0b171bf5db46b6b49c6f85e3/ghc

>---------------------------------------------------------------

commit 79d5427e1f9de02c0b171bf5db46b6b49c6f85e3
Author: David Eichmann <EichmannD at gmail.com>
Date:   Thu Nov 29 18:22:16 2018 +0100

    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


>---------------------------------------------------------------

79d5427e1f9de02c0b171bf5db46b6b49c6f85e3
 hadrian/src/Context.hs               | 13 ++++++-
 hadrian/src/Hadrian/Utilities.hs     | 71 +++++++++++++++++++++++++++++++++++-
 hadrian/src/Settings/Builders/Ghc.hs | 45 ++++++++++++++++++++---
 3 files changed, 120 insertions(+), 9 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 79d5427e1f9de02c0b171bf5db46b6b49c6f85e3


More information about the ghc-commits mailing list