finding libraries for programs with doing clean builds

David Faure faure at kde.org
Tue Jan 10 16:42:45 CET 2006


On Friday 06 January 2006 15:00, Thiago Macieira wrote:
> Matt Rogers wrote:
> >I've tried to think of a good solution for this for the last couple of
> > days and I haven't come up with much of anything. Does anybody else
> > have some ideas on how to solve this? Obviously setting LD_LIBRARY_PATH
> > before running scons works, but there will be a lot of directories that
> > will need to be added once we get around to doing things like compiling
> > docs, etc. and I'm wondering if we can do something better.
> 
> The only solution is to duplicate what libtool does, which is to determine 
> how to run a program linked against uninstalled libraries.
> 
> Options are:
> 1) setting the proper environment variable when possible 
> (DYLIB_LIBRARY_PATH, LD_LIBRARY_PATH, etc.)
> 
> 2) relinking the program if no other suitable method is found
> 
> Note that a standard Linux uses option #2, because LD_LIBRARY_PATH won't 
> work on a standard KDE installation that used --rpath.

But this can be fixed with your "new-ldtags-whatever", right? i.e. We can switch
"standard Linux" to option 1) as long as we use the right method of setting runpaths,
in a way that still makes LD_LIBRARY_PATH prevail?

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).



More information about the Kde-buildsystem mailing list