GNU bug report logs -
#10484
glibtool is trying to include multiple copies of the same object file
Previous Next
Full log
View this message in rfc822 format
On 01/11/2012 05:51 PM, Peter O'Gorman wrote:
> libmi.la is listed twice here (in the Makefile.am it's listed explicitly
> and it's in @XORG_LIBS@), which causes libtool to do its 'copying
> selected object files to avoid basename conflicts' bit.
>
> I have reproduced with a small test case, will try to investigate a
> little more this evening.
The code is attempting to allow something like:
./libtool --mode=link --tag=CC cc -o libfoo.la ./a/libbar.la ./b/libbar.a
where you have two different convenience libraries with the same
basename. Because they're convenience libraries libtool should ensure
that all objects in the archives end up in the output, so it renames one
and adds all objects from both convenience libs.
In your case the same convenience archive ended up on the link line
twice by accident, libtool doesn't check for that, I'm copying
bug-libtool to create a bug report for this, thanks.
Peter
This bug report was last modified 13 years and 222 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.