[Git][ghc/ghc][master] ghc-toolchain: Set -fuse-ld even for ld.bfd

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Sat Sep 21 21:53:23 UTC 2024



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
9586998d by Sven Tennie at 2024-09-21T17:51:43-04:00
ghc-toolchain: Set -fuse-ld even for ld.bfd

This reflects the behaviour of the autoconf scripts.

- - - - -


1 changed file:

- utils/ghc-toolchain/src/GHC/Toolchain/Tools/Link.hs


Changes:

=====================================
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", "gold"]
+        | linker <- ["lld", "gold", "bfd"]
         , let prog = over _prgFlags (++["-fuse-ld="++linker]) ccLink
         ]
         <|> (ccLink <$ checkLinkWorks cc ccLink)



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/9586998d09d6be7ca4478b344c7db04ecd512c03

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/9586998d09d6be7ca4478b344c7db04ecd512c03
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240921/29537f06/attachment-0001.html>


More information about the ghc-commits mailing list