#3178: Fix linking -lpthread for semaphores
---------------------------+------------------------------------------------
Reporter: sthibaul | Type: bug
Status: new | Priority: normal
Milestone: _|_ | Component: libraries/unix
Version: 6.10.2 | Keywords:
Testcase: | Blockedby:
Difficulty: Unknown | Os: Other
Blocking: | Architecture: Unknown/Multiple
Failure: None/Unknown |
---------------------------+------------------------------------------------
Comment(by j...@…):
If I use gcc-4.4 this works fine, it occurs only with 4.5 as it is in
Ubuntu 11.04 devel. The flag that apparently causes it is --no-add-needed
. Running the gcc command without that flag leads to successful linkage.
I am not sure why this is ARM only and whether it is a gcc or ghc6 issue
mostly?
Should pthread be explicitly mentioned in the link list? I see that it
gets linked to the final executable when the build works.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3178#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs