[commit: ghc] master: KFreeBSD is also an ELF binary (7196367)
Simon Marlow
marlowsd at gmail.com
Wed Jan 4 15:29:03 CET 2012
Repository : ssh://darcs.haskell.org//srv/darcs/ghc
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/71963675263e5e66fe80c2fba4fa2bbe6c0bed73
>---------------------------------------------------------------
commit 71963675263e5e66fe80c2fba4fa2bbe6c0bed73
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 c7cd6d1..5aa3132 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 10b19fe..7045f4b 100644
--- a/compiler/utils/Platform.hs
+++ b/compiler/utils/Platform.hs
@@ -56,6 +56,7 @@ data OS
| OSFreeBSD
| OSOpenBSD
| OSNetBSD
+ | OSKFreeBSD
deriving (Read, Show, Eq)
-- | ARM Instruction Set Architecture and Extensions
@@ -87,6 +88,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