Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander Kaznacheev
GHC
Commits
b9cbe8ca
Commit
b9cbe8ca
authored
13 years ago
by
Joachim Breitner
Committed by
Ian Lynagh
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
KFreeBSD is also an ELF binary
Fixes: #5733
parent
3c629f8e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aclocal.m4
+4
-1
4 additions, 1 deletion
aclocal.m4
compiler/utils/Platform.hs
+2
-0
2 additions, 0 deletions
compiler/utils/Platform.hs
with
6 additions
and
1 deletion
aclocal.m4
+
4
−
1
View file @
b9cbe8ca
...
...
@@ -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"
;;
*)
...
...
This diff is collapsed.
Click to expand it.
compiler/utils/Platform.hs
+
2
−
0
View file @
b9cbe8ca
...
...
@@ -55,6 +55,7 @@ data OS
|
OSFreeBSD
|
OSOpenBSD
|
OSNetBSD
|
OSKFreeBSD
deriving
(
Read
,
Show
,
Eq
)
-- | ARM Instruction Set Architecture and Extensions
...
...
@@ -86,6 +87,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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment