Commit 629ae2a7 authored by Simon Marlow's avatar Simon Marlow

Add support for nto-qnx (BlackBerry 10)

Submitted by: Stephen Paul Weber <singpolyma@singpolyma.net>
parent 1a703068
......@@ -245,6 +245,9 @@ AC_DEFUN([FPTOOLS_SET_HASKELL_PLATFORM_VARS],
osf3)
test -z "[$]2" || eval "[$]2=OSOsf3"
;;
nto-qnx)
test -z "[$]2" || eval "[$]2=OSQNXNTO"
;;
dragonfly|osf1|hpux|linuxaout|freebsd2|cygwin32|gnu|nextstep2|nextstep3|sunos4|ultrix|irix|aix)
test -z "[$]2" || eval "[$]2=OSUnknown"
;;
......@@ -1830,6 +1833,9 @@ case "$1" in
# i686-gentoo-freebsd8.2
$2="freebsd"
;;
nto-qnx*)
$2="nto-qnx"
;;
*)
echo "Unknown OS $1"
exit 1
......
......@@ -1819,7 +1819,7 @@ linkBinary dflags o_files dep_packages = do
let os = platformOS (targetPlatform dflags)
in if os == OSOsf3 then ["-lpthread", "-lexc"]
else if os `elem` [OSMinGW32, OSFreeBSD, OSOpenBSD,
OSNetBSD, OSHaiku]
OSNetBSD, OSHaiku, OSQNXNTO]
then []
else ["-lpthread"]
| otherwise = []
......
......@@ -69,6 +69,7 @@ data OS
| OSKFreeBSD
| OSHaiku
| OSOsf3
| OSQNXNTO
deriving (Read, Show, Eq)
-- | ARM Instruction Set Architecture, Extensions and ABI
......@@ -110,6 +111,7 @@ osElfTarget OSKFreeBSD = True
osElfTarget OSHaiku = True
osElfTarget OSOsf3 = False -- I don't know if this is right, but as
-- per comment below it's safe
osElfTarget OSQNXNTO = False
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment