[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: --as-needed problem
From:       Szombathelyi "György" <gyurco () freemail ! hu>
Date:       2004-11-09 18:10:04
Message-ID: 200411091910.04579.gyurco () freemail ! hu
[Download RAW message or body]

2004. november 9. 18.56 dátummal David Faure ezt írta:
> On Tuesday 09 November 2004 18:47, Szombathelyi Gyà ¶rgy wrote:
> > 2004. november 9. 18.32 dátummal David Faure ezt írta:
> > > If it prevents compiling kdelibs, it won't be any good to packagers
> > > either.
> > >
> > > This sounds like two conflicting libtool features - can't it be fixed
> > > in libtool somehow? (hacking the RPATH or something)
> >
> > I don't think it's easily solvable. Libtool generates custom RPATH values
> > only for programs (in lt-progname), not for libraries. Libtool should
> > create ./libs/lt-library_name.so.x.x.x, not just
> > ./libs/library_name.so.x.x.x and link lt-progname not to library_name,
> > but to lt-library_name. Then lt-library_name.so.x.x.x can contain the
> > custom RPATH values, like lt-progname (which points to the build dir).
>
> But it could also read those paths from the .la files, and use all of them
> when linking lt-progname, couldn't it?
Yes, this is exactly what libtool is doing it now. But RPATHs in lt-progname 
for libs which are indirect dependencies (no NEEDED in lt-progname, but 
NEEDED in the lib which is a direct dependant) are overriden by RPATHs in the 
direct-dependant library. Previously this was not a problem, because there 
were no indirect dependencies before, all libraries were NEEDED in 
lt-progname. The dynamic linker falls back to RPATH in lt-progname only if 
the indirect dependency is not found in any RPATH in the direct-dependant 
library.

____________________________________________________________________
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol.
Probald ki most! http://www.freestart.hu

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic