On Sat, Oct 07, 2006 at 01:24:20AM +0200, Kurt Roeckx wrote:
> You have ../libltdl/libltdlc.la before -lcwd in your call to libtool,
> and I think that is part of the problem.  It expands libltdlc.la to
> libltdlc.a and -ldl, and there isn't any "reorder" there.  At a later
> time you also say it to link to -ldl, which is a duplicate, and libtool
> removes it from the command line.

I DON'T say it to link to -ldl !

What I say is: libltdlc.a -lcwd

BOTH depends on -ldl and therefore the generated g++ command
should be:  libltdlc.a -lcwd -ldl and NOT libltdlc.a -ldl -lcwd

> For libcwd to work, you really want it to be the first library in the
> list, before any other, so even before libltdlc.la.  This should make
> sure that the dynamic linker will use your functions.

That is nonsense! When both libraries depend on third, then the
third has to be specified last by libtool.

The upstream libtool does this correctly. Only your 'debian'
version is broken in this regard.

It is WRONG to outout -ldl this early. Your libtool is buggy.

-- 
Carlo Wood <[EMAIL PROTECTED]>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to