Matthias Kilian wrote:
On Wed, Nov 19, 2008 at 01:18:39PM +0000, Simon Marlow wrote:
My only idea how to fix this it to add -pthread to cc-options and
ld-options of unix.buildinfo if SplitObjs=NO, but this sounds like
a crude hack to me.
If anyone has a better solution, please let me know.
SplitObjs is a red herring: it only hides the real problem, which is that
the unix package depends on the pthread library on OpenBSD, and doesn't
express this dependency in its .cabal file. The fix is surely to add
-lpthread to extra-libraries in unix.cabal. Right?
Patch attached. If it's not too stupid (autoconf-wise), it would
be nice if someone could apply it upstream. Applying it to other
operating systems (if necessary) shouldn't be too difficult.
Does this work with GHCi too? i.e. does 'ghci -package unix' work?
Cheers,
Simon
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc