This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: dependency list for static libraries
On Tue, Sep 19, 2017 at 11:03 AM, Howard Chu <hyc@symas.com> wrote:
> Simon Richter wrote:
>>
>> Hi,
>>
>> On 19.09.2017 17:49, Howard Chu wrote:
>>
>>> We often get link errors when switching from dynamic linking to static
>>> linking, because dynamic libraries list all of their own dependency
>>> libraries, and static libraries don't. (And the program being linked
>>> doesn't know about those indirect dependencies.)
>>
>>
>> That is what libtool's .la files do — these have a list of extra
>> dependencies to be linked when linking statically.
>
>
> Libtool files are a poor solution and an additional admin overhead.
To add to this, though it may not be extremely relevant, there are a
lot of automake tests that seem to be broken for unknown reasons
during cross-compilation. Binutils itself doesn't use any broken tests
(last I checked), but if one tries to cross-compile an entire
GNU/Linux distribution it is likely that the problem will manifest
itself.
It seems like the best way to avoid this is to avoid using the autotools.
Cheers,
R0b0t1