On Apr 14, 2000, Kevin Atkinson <[EMAIL PROTECTED]> wrote:
> I honestly don't see what the hell is wrong with using a shell script to
> do this so a binary can be relocating.
1) You have to figure out whether to use LD_LIBRARY_PATH, SHLIB_PATH,
LD32_LIBRARY_PATH, LD64_LIBRARY_PATH, etc.
2) You have to make sure LD_LIBRARY_PATH won't be overridden by any
search paths that may have been encoded in the executable (on recent
releases of GNU/Linux and FreeBSD, -rpath overrides LD_LIBRARY_PATH,
as demanded by the POSIX Standard)
3) SHLIB_PATH may have been disabled (in fact, it's disabled by
default)
4) IIRC, on some systems, LD_LIBRARY_PATH won't apply to dependent
libraries.
5) etc
6) etc
7) etc :-)
--
Alexandre Oliva Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me