libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: disable indirect dependency linking


From: Jack Bates
Subject: Re: disable indirect dependency linking
Date: Thu, 23 Feb 2017 10:07:13 -0700
User-agent: NeoMutt/20170113 (1.7.2)

On Tue, Feb 07, 2017 at 12:02:50PM +1100, Sashan Govender wrote:
> Hi
> 
> How do I tell libtool not to recursively add dependant libraries to
> the list of libraries to link with. For example, say I have a program
> A, that depends on libfoo and libfoo depends on libbar. In my
> Makefile.am  for A I have a line like this:
> 
> A_LDDADD= libfoo.la
> 
> Behind the scenes libtool will figure out that libfoo depends on
> libbar and so after linking the resultant binary contains information
> showing that A depends on  libfoo and libbar. (i.e. output from
> objdump -p A | grep NEEDED shows both libraries). Since libbar is an
> indirect dependency of A, libtool has added it. Can this be disabled
> such that only the direct dependencies are included?

Does link_all_deplibs=no do the trick? [1]

[1] 
https://www.gnu.org/software/libtool/manual/libtool#index-link_005fall_005fdeplibs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]