Package: ghc / 8.0.1-17

hurd.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Provided by “Pino” via Samuel Thibault. Not yet pushed upstream.

Index: ghc/aclocal.m4
===================================================================
--- ghc.orig/aclocal.m4	2016-01-14 16:20:19.683572714 +0100
+++ ghc/aclocal.m4	2016-01-14 16:21:18.024754631 +0100
@@ -277,7 +277,7 @@
         nto-qnx)
             test -z "[$]2" || eval "[$]2=OSQNXNTO"
             ;;
-        dragonfly|osf1|hpux|linuxaout|freebsd2|gnu|nextstep2|nextstep3|sunos4|ultrix|irix)
+        dragonfly|osf1|hpux|linuxaout|freebsd2|nextstep2|nextstep3|sunos4|ultrix|irix)
             test -z "[$]2" || eval "[$]2=OSUnknown"
             ;;
         aix)
@@ -286,6 +286,9 @@
         linux-android)
             test -z "[$]2" || eval "[$]2=OSAndroid"
             ;;
+        gnu)
+            test -z "[$]2" || eval "[$]2=OSHurd"
+            ;;
         *)
             echo "Unknown OS '[$]1'"
             exit 1
Index: ghc/compiler/utils/Platform.hs
===================================================================
--- ghc.orig/compiler/utils/Platform.hs	2016-01-14 16:20:19.683572714 +0100
+++ ghc/compiler/utils/Platform.hs	2016-01-14 16:20:40.067985654 +0100
@@ -88,6 +88,7 @@
         | OSQNXNTO
         | OSAndroid
         | OSAIX
+        | OSHurd
         deriving (Read, Show, Eq)
 
 -- | ARM Instruction Set Architecture, Extensions and ABI
@@ -141,6 +142,7 @@
 osElfTarget OSQNXNTO    = False
 osElfTarget OSAndroid   = True
 osElfTarget OSAIX       = False
+osElfTarget OSHurd      = True
 osElfTarget OSUnknown   = False
  -- Defaulting to False is safe; it means don't rely on any
  -- ELF-specific functionality.  It is important to have a default for