projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2ed6929
)
On FreeBSD, use -lthr instead of -pthread for now (see comments)
author
Simon Marlow
<simonmar@microsoft.com>
Fri, 11 Aug 2006 11:34:53 +0000
(11:34 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Fri, 11 Aug 2006 11:34:53 +0000
(11:34 +0000)
compiler/main/StaticFlags.hs
patch
|
blob
|
history
diff --git
a/compiler/main/StaticFlags.hs
b/compiler/main/StaticFlags.hs
index
b49323b
..
4c9c5e8
100644
(file)
--- a/
compiler/main/StaticFlags.hs
+++ b/
compiler/main/StaticFlags.hs
@@
-488,8
+488,13
@@
way_details :: [ (WayName, Way) ]
way_details =
[ (WayThreaded, Way "thr" True "Threaded" [
#if defined(freebsd_TARGET_OS)
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
#elif defined(solaris2_TARGET_OS)
"-optl-lrt"
#endif