Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Sergei Trofimovich's avatar
    0693b0b0
    aclocal.m4: add OSHurd (debian patch) · 0693b0b0
    Sergei Trofimovich authored
    
    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: default avatarSergei Trofimovich <slyfox@gentoo.org>
    0693b0b0
    History
    aclocal.m4: add OSHurd (debian patch)
    Sergei Trofimovich authored
    
    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: default avatarSergei Trofimovich <slyfox@gentoo.org>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.