Skip to content
  • davide's avatar
    Hadrian: support dynamically linking ghc · 79d5427e
    davide authored and Alp Mestanogullari's avatar Alp Mestanogullari committed
    * (#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
    79d5427e