hurd-hadrian-supportrpaths
authorDebian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)
Can be dropped with 9.8.1
Debian-Bug: https://bugs.debian.org/1056305

Gbp-Pq: Name hurd-hadrian-supportrpaths

hadrian/src/Oracles/Setting.hs

index f35033a6d352e6591fd81a51e0e4ba1151bd0cfa..d516d1d234ccbb2b650582599eea8067d3751f94 100644 (file)
@@ -278,7 +278,7 @@ anyHostOs = matchSetting HostOs
 isElfTarget :: Action Bool
 isElfTarget = anyTargetOs
     [ "linux", "freebsd", "dragonfly", "openbsd", "netbsd", "solaris2", "kfreebsdgnu"
-    , "haiku", "linux-android"
+    , "gnu", "haiku", "linux-android"
     ]
 
 -- | Check whether the host OS supports the @-rpath@ linker option when
@@ -287,7 +287,7 @@ isElfTarget = anyTargetOs
 -- TODO: Windows supports lazy binding (but GHC doesn't currently support
 --       dynamic way on Windows anyways).
 hostSupportsRPaths :: Action Bool
-hostSupportsRPaths = anyHostOs ["linux", "darwin", "freebsd"]
+hostSupportsRPaths = anyHostOs ["linux", "darwin", "freebsd", "gnu"]
 
 -- | Check whether the target supports GHCi.
 ghcWithInterpreter :: Action Bool