[csw-maintainers] Runtime linker pathes in GAR

James Lee james at opencsw.org
Wed Apr 1 15:24:24 CEST 2009


On 01/04/09, 12:21:50, Dagobert Michelsen <dam at opencsw.org> wrote regarding
Re: [csw-maintainers] Runtime linker pathes in GAR:

> Ok, is it agreed then that using LD_OPTIONS for -R is a Good Thing(tm)?

LD_OPTIONS is a useful tool.  As is LD_LIBRARY_PATH for linking to
libraries in temporary locations (but don't run with it as RPATH
should know best).

The problem with LD_OPTIONS is it sets the same parameters for all
which might not be appropriate.  One of your executables might need,
e.g., /opt/csw/bdb4/lib first but maybe not all would - although,
assuming the right lib is eventually found, it only wastes the linker's
and user's time, just as those bad RPATHs cause the runtime linker to
look for files that don't exist.

Use LD_OPTIONS if it works.



James.



More information about the maintainers mailing list