summaryrefslogtreecommitdiff
path: root/compiler/nativeGen
diff options
context:
space:
mode:
authorMatthias Kilian <kili@outback.escape.de>2010-09-18 20:50:40 +0000
committerMatthias Kilian <kili@outback.escape.de>2010-09-18 20:50:40 +0000
commit190b2d90f92f61eb802275729106b5d9fb9a7a7c (patch)
treef3c5e62159da1ee498abeb0ec1619763bc742120 /compiler/nativeGen
parenta6f2d598e1e7760d334d1b5ea0b7745e66835e11 (diff)
downloadhaskell-190b2d90f92f61eb802275729106b5d9fb9a7a7c.tar.gz
Enable shared libs on OpenBSD
Diffstat (limited to 'compiler/nativeGen')
-rw-r--r--compiler/nativeGen/Platform.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/nativeGen/Platform.hs b/compiler/nativeGen/Platform.hs
index afbf0b2ae2..6c6b124a15 100644
--- a/compiler/nativeGen/Platform.hs
+++ b/compiler/nativeGen/Platform.hs
@@ -49,6 +49,7 @@ data OS
| OSSolaris
| OSMinGW32
| OSFreeBSD
+ | OSOpenBSD
deriving (Show, Eq)
@@ -56,6 +57,7 @@ data OS
osElfTarget :: OS -> Bool
osElfTarget OSLinux = True
osElfTarget OSFreeBSD = True
+osElfTarget OSOpenBSD = True
osElfTarget _ = False
-- | This is the target platform as far as the #ifdefs are concerned.
@@ -96,6 +98,8 @@ defaultTargetOS = OSSolaris
defaultTargetOS = OSMinGW32
#elif freebsd_TARGET_OS
defaultTargetOS = OSFreeBSD
+#elif openbsd_TARGET_OS
+defaultTargetOS = OSOpenBSD
#else
defaultTargetOS = OSUnknown
#endif