Bug#294481: ghci -lpthread fails
Ian Lynagh
igloo at earth.li
Fri Feb 11 08:25:41 EST 2005
On Fri, Feb 11, 2005 at 11:27:21AM -0000, Simon Marlow wrote:
> On 10 February 2005 23:35, Ian Lynagh wrote:
>
> > I'm no library expert, so there may be a cleaner/simpler/more portable
> > equivalent to the above.
>
> I'm not that familiar with libtool, but I guess what you're doing here
> is creating a dummy shared library which is linked against -lpthread,
> and linking that into GHCi?
Yup.
> I don't see any reason why we couldn't automate the process, except that
> getting all the fiddly details right would probably be a nightmare.
Like I say, I'm no expert either :-(
> And would you require libtool to be installed? What about other
> platforms - Mac OS X?
If the necessary bits aren't available then you can fall back to acting
like -optl-foo and are no worse off than currently.
I think libtool is supposed to take care of the portability side for
you, so hopefully lots of special casing won't be necessary. I don't
know how well that works in practice, though.
Thanks
Ian
More information about the Glasgow-haskell-users
mailing list