[Git][ghc/ghc][master] Change hostSupportsRPaths to report False on OpenBSD

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Wed Mar 8 13:59:20 UTC 2023



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


Commits:
1e0d8fdb by Greg Steuck at 2023-03-08T08:59:05-05:00
Change hostSupportsRPaths to report False on OpenBSD

OpenBSD does support -rpath but ghc build process relies on some
related features that don't work there. See ghc/ghc#23011

- - - - -


1 changed file:

- hadrian/src/Oracles/Setting.hs


Changes:

=====================================
hadrian/src/Oracles/Setting.hs
=====================================
@@ -293,7 +293,10 @@ isElfTarget = anyTargetOs elfOSes
 -- TODO: Windows supports lazy binding (but GHC doesn't currently support
 --       dynamic way on Windows anyways).
 hostSupportsRPaths :: Action Bool
-hostSupportsRPaths = anyHostOs (elfOSes ++ machoOSes)
+hostSupportsRPaths = do
+  -- https://gitlab.haskell.org/ghc/ghc/-/issues/23011
+  isOpenBSD <- anyHostOs ["openbsd"]
+  if not isOpenBSD then anyHostOs (elfOSes ++ machoOSes) else pure False
 
 -- | Check whether the target supports GHCi.
 ghcWithInterpreter :: Action Bool



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1e0d8fdb55a38ece34fa6cf214e1d2d46f5f5bf2

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1e0d8fdb55a38ece34fa6cf214e1d2d46f5f5bf2
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/20230308/55b110e6/attachment.html>


More information about the ghc-commits mailing list