Ticket #5733: 0001-KFreeBSD-is-also-an-ELF-binary.patch

File 0001-KFreeBSD-is-also-an-ELF-binary.patch, 1.8 KB (added by nomeata, 2 years ago)

For your convenience, the patch in git-format.

  • aclocal.m4

    From ec3df9d1d7a8ed0232a6eb68aded103e1cf53117 Mon Sep 17 00:00:00 2001
    From: Joachim Breitner <mail@joachim-breitner.de>
    Date: Sun, 1 Jan 2012 02:17:24 +0100
    Subject: [PATCH] KFreeBSD is also an ELF binary
    
    Fixes: #5733
    ---
     aclocal.m4                 |    5 ++++-
     compiler/utils/Platform.hs |    2 ++
     2 files changed, 6 insertions(+), 1 deletions(-)
    
    diff --git a/aclocal.m4 b/aclocal.m4
    index 1d5d1f7..c8b5b9c 100644
    a b AC_DEFUN([FPTOOLS_SET_HASKELL_PLATFORM_VARS], 
    221221        freebsd) 
    222222            test -z "[$]2" || eval "[$]2=OSFreeBSD" 
    223223            ;; 
     224        kfreebsdgnu) 
     225            test -z "[$]2" || eval "[$]2=OSKFreeBSD" 
     226            ;; 
    224227        openbsd) 
    225228            test -z "[$]2" || eval "[$]2=OSOpenBSD" 
    226229            ;; 
    227230        netbsd) 
    228231            test -z "[$]2" || eval "[$]2=OSNetBSD" 
    229232            ;; 
    230         dragonfly|osf1|osf3|hpux|linuxaout|kfreebsdgnu|freebsd2|cygwin32|gnu|nextstep2|nextstep3|sunos4|ultrix|irix|aix|haiku) 
     233        dragonfly|osf1|osf3|hpux|linuxaout|freebsd2|cygwin32|gnu|nextstep2|nextstep3|sunos4|ultrix|irix|aix|haiku) 
    231234            test -z "[$]2" || eval "[$]2=OSUnknown" 
    232235            ;; 
    233236        *) 
  • compiler/utils/Platform.hs

    diff --git a/compiler/utils/Platform.hs b/compiler/utils/Platform.hs
    index 7253af1..71d7af0 100644
    a b data OS 
    5757        | OSFreeBSD 
    5858        | OSOpenBSD 
    5959        | OSNetBSD 
     60        | OSKFreeBSD 
    6061        deriving (Read, Show, Eq) 
    6162 
    6263-- | ARM Instruction Set Architecture and Extensions 
    osElfTarget OSNetBSD = True 
    9697osElfTarget OSSolaris2 = True 
    9798osElfTarget OSDarwin   = False 
    9899osElfTarget OSMinGW32  = False 
     100osElfTarget OSKFreeBSD = True 
    99101osElfTarget OSUnknown  = panic "Don't know if OSUnknown is elf" 
    100102