Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
71963675
Commit
71963675
authored
Jan 01, 2012
by
Joachim Breitner
Committed by
Simon Marlow
Jan 04, 2012
Browse files
KFreeBSD is also an ELF binary
Fixes:
#5733
parent
cf655bc9
Changes
2
Hide whitespace changes
Inline
Side-by-side
aclocal.m4
View file @
71963675
...
...
@@ -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"
;;
*)
...
...
compiler/utils/Platform.hs
View file @
71963675
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment