aclocal.m4: add OSHurd (debian patch)
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 17 Mar 2018 17:12:04 +0000 (17:12 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 17 Mar 2018 17:12:04 +0000 (17:12 +0000)
commit0693b0b0500236a3dec933350a13f1b0e8c1cb54
tree5d127a74813b3b7d88842a3c1f584275f9a01183
parent1522cf05c9c3e9afd3ef9c7f3f419460c41488d9
aclocal.m4: add OSHurd (debian patch)

ghc treats OSUnknown (and GNU/Hurd) as non-ELF target.
This causes panic in native codegenerator when trying
to build PIC code:

```
  ...
  -- all other platforms
  howToAccessLabel dflags _ _ _ _ _
        | not (positionIndependent dflags)
        = AccessDirectly
        | otherwise
        = panic "howToAccessLabel: PIC not defined for this platform"
```

This change declares new 'OSHurd' and marks it as an
ELF target. Fixes building ghc-stage2 on i686-unknown-gnu0.9.

Patch provided by "Pino" via Samuel Thibault and taken from
debian.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
aclocal.m4
compiler/utils/Platform.hs