[commit: ghc] ghc-7.4: KFreeBSD is also an ELF binary (b9cbe8c)
Ian Lynagh
igloo at earth.li
Fri Jan 6 14:20:29 CET 2012
Repository : ssh://darcs.haskell.org//srv/darcs/ghc
On branch : ghc-7.4
http://hackage.haskell.org/trac/ghc/changeset/b9cbe8ca889b7bd8cc297110aa531a6fc52e6580
>---------------------------------------------------------------
commit b9cbe8ca889b7bd8cc297110aa531a6fc52e6580
Author: Joachim Breitner <mail at joachim-breitner.de>
Date: Sun Jan 1 02:17:24 2012 +0100
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 a790cef..c5d48fa 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -212,13 +212,16 @@ AC_DEFUN([FPTOOLS_SET_HASKELL_PLATFORM_VARS],
freebsd)
test -z "[$]2" || eval "[$]2=OSFreeBSD"
;;
+ kfreebsdgnu)
+ test -z "[$]2" || eval "[$]2=OSKFreeBSD"
+ ;;
openbsd)
test -z "[$]2" || eval "[$]2=OSOpenBSD"
;;
netbsd)
test -z "[$]2" || eval "[$]2=OSNetBSD"
;;
- dragonfly|osf1|osf3|hpux|linuxaout|kfreebsdgnu|freebsd2|cygwin32|gnu|nextstep2|nextstep3|sunos4|ultrix|irix|aix|haiku)
+ dragonfly|osf1|osf3|hpux|linuxaout|freebsd2|cygwin32|gnu|nextstep2|nextstep3|sunos4|ultrix|irix|aix|haiku)
test -z "[$]2" || eval "[$]2=OSUnknown"
;;
*)
diff --git a/compiler/utils/Platform.hs b/compiler/utils/Platform.hs
index e888773..38205bb 100644
--- a/compiler/utils/Platform.hs
+++ b/compiler/utils/Platform.hs
@@ -55,6 +55,7 @@ data OS
| OSFreeBSD
| OSOpenBSD
| OSNetBSD
+ | OSKFreeBSD
deriving (Read, Show, Eq)
-- | ARM Instruction Set Architecture and Extensions
@@ -86,6 +87,7 @@ osElfTarget OSNetBSD = True
osElfTarget OSSolaris2 = True
osElfTarget OSDarwin = False
osElfTarget OSMinGW32 = False
+osElfTarget OSKFreeBSD = 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
More information about the Cvs-ghc
mailing list