Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
22387f7d
Commit
22387f7d
authored
Aug 11, 2006
by
Simon Marlow
Browse files
On FreeBSD, use -lthr instead of -pthread for now (see comments)
parent
2ed69294
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/main/StaticFlags.hs
View file @
22387f7d
...
...
@@ -488,8 +488,13 @@ way_details :: [ (WayName, Way) ]
way_details
=
[
(
WayThreaded
,
Way
"thr"
True
"Threaded"
[
#
if
defined
(
freebsd_TARGET_OS
)
"-optc-pthread"
,
"-optl-pthread"
-- "-optc-pthread"
-- , "-optl-pthread"
-- FreeBSD's default threading library is the KSE-based M:N libpthread,
-- which GHC has some problems with. It's currently not clear whether
-- the problems are our fault or theirs, but it seems that using the
-- alternative 1:1 threading library libthr works around it:
"-optl-lthr"
#
elif
defined
(
solaris2_TARGET_OS
)
"-optl-lrt"
#
endif
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment