Re: dependency_libs issue

2003-09-18 Thread Clinton Roy
Clinton Roy [EMAIL PROTECTED] writes:

 What happens if you move /usr/lib/libxml2* out of the way first? Does
 it then find /dstc/lib/libxml2.la. If so, looks like a libtool bug.

 This is indeed what happens :|  I'll spend what time i can tracking it
 down over the next few weeks (my current deadline is then, so.. ;)

I've been able to isolate it a little,

If LIBS is set to:

-L/dstc/lib -lxml2 -lz -lpthread -lm

dependency_libs is properly set to:

' -L/dstc/lib /dstc/lib/libxml2.la -lz -lpthread -lm'

However, if I add -lgdb to LIBS:

-lgdbm  -L/dstc/lib -lxml2 -lz -lpthread -lm

dependency_libs gets incorrectly set to:

' /usr/lib/libgdbm.la -L/dstc/lib /usr/lib/libxml2.la -lz -lpthread -lm'

Now, /usr/lib/libgdbm.la doesn't depend on libxml2, so that would
still seem to be a bug.

Fortunately for me however I can work without libgdbm. I'm still keen
to fix this bug, but it's no longer urgent for me.

cheers,
-- 
Clinton Roy
Elvin Software Engineer - elvin.dstc.edu.au
Humbug Vice president   - www.humbug.org.au


___
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool


dependency_libs issue

2003-09-08 Thread Clinton Roy
Hi folks,

I've got code in configure.ac that eventually sets LIBS to:
LIBS = -lgdbm  -L/dstc/lib -lxml2 -lz -lpthread -lm -ldb

However, ltmain.sh produces a .la file with:

dependency_libs=' /usr/lib/libgdbm.la -L/dstc/lib /usr/lib/libxml2.la -lz -lpthread 
-lm -ldb'

How did that /usr/lib/libxml2.la get in there?

I'm using libtool 1.4.2, but have had the same problem with a hasty
test install of branch-1-5 of CVS.

Some debugging code I inserted in ltmain.sh where this has previously
been a problem (near the Search the libtool library comment):
searching for gdbm in  . /dstc/lib
  found in /usr/lib
searching for xml2 in  . /dstc/lib /usr/lib /dstc/lib
  found in /dstc/lib
searching for z in  . /dstc/lib /usr/lib /dstc/lib /dstc/lib
searching for pthread in  . /dstc/lib /usr/lib /dstc/lib /dstc/lib
searching for m in  . /dstc/lib /usr/lib /dstc/lib /dstc/lib
searching for db in  . /dstc/lib /usr/lib /dstc/lib /dstc/lib
searching for z in 
searching for pthread in 
searching for m in 
searching for db in 

So it's finding xml2 in the right place at that point at least..

thanks for any help,
-- 
Clinton Roy
Elvin Software Engineer - elvin.dstc.edu.au
Humbug Vice president   - www.humbug.org.au



___
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool