[Git][ghc/ghc][wip/T26166] re-include -u_init_ghc_hs_iface flag, see comments on #26166
Rodrigo Mesquita pushed to branch wip/T26166 at Glasgow Haskell Compiler / GHC Commits: fa0d2788 by Rodrigo Mesquita at 2025-10-16T16:00:27+01:00 re-include -u_init_ghc_hs_iface flag, see comments on #26166 - - - - - 1 changed file: - compiler/GHC/Linker/Static.hs Changes: ===================================== compiler/GHC/Linker/Static.hs ===================================== @@ -250,6 +250,13 @@ linkBinary' staticLink logger tmpfs dflags unit_env o_files dep_units = do ++ pkg_lib_path_opts ++ extraLinkObj ++ noteLinkObjs + -- See Note [RTS/ghc-internal interface] + -- (-u<sym> must come before -lghc-internal...!) + ++ (if ghcInternalUnitId `elem` map unitId pkgs + then [concat [ "-Wl,-u," + , ['_' | platformLeadingUnderscore platform] + , "init_ghc_hs_iface" ]] + else []) ++ pkg_link_opts ++ pkg_framework_opts ++ (if platformOS platform == OSDarwin View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/fa0d27886c2a5d72a04de6291366a4f6... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/fa0d27886c2a5d72a04de6291366a4f6... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Rodrigo Mesquita (@alt-romes)