Rodrigo Mesquita pushed to branch wip/T26166 at Glasgow Haskell Compiler / GHC

Commits:

1 changed file:

Changes:

  • compiler/GHC/Linker/Static.hs
    ... ... @@ -250,6 +250,13 @@ linkBinary' staticLink logger tmpfs dflags unit_env o_files dep_units = do
    250 250
                           ++ pkg_lib_path_opts
    
    251 251
                           ++ extraLinkObj
    
    252 252
                           ++ noteLinkObjs
    
    253
    +                      -- See Note [RTS/ghc-internal interface]
    
    254
    +                      -- (-u<sym> must come before -lghc-internal...!)
    
    255
    +                      ++ (if ghcInternalUnitId `elem` map unitId pkgs
    
    256
    +                          then [concat [ "-Wl,-u,"
    
    257
    +                                       , ['_' | platformLeadingUnderscore platform]
    
    258
    +                                       , "init_ghc_hs_iface" ]]
    
    259
    +                          else [])
    
    253 260
                           ++ pkg_link_opts
    
    254 261
                           ++ pkg_framework_opts
    
    255 262
                           ++ (if platformOS platform == OSDarwin