
Zubin pushed to branch wip/9.10.3-backports at Glasgow Haskell Compiler / GHC Commits: d7d323b0 by Zubin Duggal at 2025-08-07T21:21:46+05:30 Revert "configure: Drop probing of ld.gold" This reverts commit cf1f18c33397167769397d7d478c6ba3bd78f69a. - - - - - 2 changed files: - m4/find_ld.m4 - utils/ghc-toolchain/src/GHC/Toolchain/Tools/Link.hs Changes: ===================================== m4/find_ld.m4 ===================================== @@ -21,7 +21,14 @@ AC_DEFUN([FIND_LD],[ return fi - linkers="ld.lld ld" + case $CPU in + i386) + # We refuse to use ld.gold on i386 due to #23579, which we don't + # have a good autoconf check for. + linkers="ld.lld ld" ;; + *) + linkers="ld.lld ld.gold ld" ;; + esac # Manually iterate over possible names since we want to ensure that, e.g., # if ld.lld is installed but gcc doesn't support -fuse-ld=lld, that we ===================================== utils/ghc-toolchain/src/GHC/Toolchain/Tools/Link.hs ===================================== @@ -91,7 +91,7 @@ findLinkFlags enableOverride cc ccLink -- executable exists before trying cc. do _ <- findProgram (linker ++ " linker") emptyProgOpt ["ld."++linker] prog <$ checkLinkWorks cc prog - | linker <- ["lld", "bfd"] + | linker <- ["lld", "gold"] , let prog = over _prgFlags (++["-fuse-ld="++linker]) ccLink ] <|> (ccLink <$ checkLinkWorks cc ccLink) View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d7d323b0fb0805f3ebc10c91a9d858d1... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d7d323b0fb0805f3ebc10c91a9d858d1... You're receiving this email because of your account on gitlab.haskell.org.