projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enable shared libs on OpenBSD
[ghc-hetmet.git]
/
compiler
/
nativeGen
/
Platform.hs
diff --git
a/compiler/nativeGen/Platform.hs
b/compiler/nativeGen/Platform.hs
index
afbf0b2
..
6c6b124
100644
(file)
--- a/
compiler/nativeGen/Platform.hs
+++ b/
compiler/nativeGen/Platform.hs
@@
-49,6
+49,7
@@
data OS
| OSSolaris
| OSMinGW32
| OSFreeBSD
| OSSolaris
| OSMinGW32
| OSFreeBSD
+ | OSOpenBSD
deriving (Show, Eq)
deriving (Show, Eq)
@@
-56,6
+57,7
@@
data OS
osElfTarget :: OS -> Bool
osElfTarget OSLinux = True
osElfTarget OSFreeBSD = True
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.
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
defaultTargetOS = OSMinGW32
#elif freebsd_TARGET_OS
defaultTargetOS = OSFreeBSD
+#elif openbsd_TARGET_OS
+defaultTargetOS = OSOpenBSD
#else
defaultTargetOS = OSUnknown
#endif
#else
defaultTargetOS = OSUnknown
#endif