On Sat, Nov 8, 2008 at 7:00 AM, Roumen Petrov
<[EMAIL PROTECTED]> wrote:
> Russ Allbery wrote:
>>
>> Roumen Petrov <[EMAIL PROTECTED]> writes:
>>>
>>> Russ Allbery wrote:
>>
>>>> Debian's experience to date is that --as-needed is buggy and breaks a
>>>> lot of software, and overall is not a particularly stable solution.
>>>> Removing *.la files so that the unneeded shared libraries aren't linked
>>>> in the first place works considerably better at the moment.
>>
>>> Could you point by example how libtool add "pile of unnecessary
>>> dependencies" ?  Whit this example could you confirm that libtool add
>>> more(extra) libraries then specified by project authors ?
>>
>> When you create a libtool library, libtool records every library against
>> which that library was linked into the *.la file.  If you then link
>> another shared library against that shared library using libtool, libtool
>> reads that list of libraries from the *.la file and links the new library
>> against them as well.
>
> But problem is not in the libtool.

Yes it is. If you're linking to libfoo, libtool reads libfoo.la and
adds direct links to everything in dependency_libs. Let's say libfoo
depends on libbar and libbaz. You're application ends up directly
linking to libfoo, libbar and libbaz instead of just libfoo.

--
Dan


_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to