libtool
[Top][All Lists]
Advanced

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

Re: Linking against indirect dependencies


From: Albert Chin
Subject: Re: Linking against indirect dependencies
Date: Mon, 24 May 2004 12:01:15 -0500
User-agent: Mutt/1.5.6i

On Mon, May 24, 2004 at 08:19:00AM +0200, Szombathelyi Gy?rgy wrote:
> I've just curious if is it possible _not_ to link a program/lib against 
> its indirect dependencies. I mean if libC is linked against libB and 
> libB is against libA then libtool will link libC against libA, which is 
> not neccessary in most situations (at least not on Linux, but I guess 
> not in most ELF platforms). What I've discovered is that libtool always 
> links against all the depencency_libs in the .la file. Here's a thread 
> about this issue in KDE: 
> http://lists.kde.org/?l=kde-core-devel&m=108534182408921&w=2

dependency_libs doesn't contain just libraries. Maybe LDFLAGS as well,
like -pthread. BTW, is it _really_ a problem to link against
everything in dependency_libs? Indirectly, this is going to happen
anyway even if libtool doesn't do this.

-- 
albert chin (address@hidden)




reply via email to

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