Re: Ian's solution [was: What hack in ld.so?]
Joey Hess wrote:
> * Program xfoo is linked with libXaw.so
> * -rpath is used so it's hard coded to look for this library in
> * The user of program xfoo wants to use the xaw3d widget set with it instead
> of the default libXaw.so. They expect to be able to set LD_PRELOAD to
Actually, I meant to say LD_LIBRARY_PATH, not LD_PRELOAD. Or just edit
/etc/ld.so.conf. Neither of these changes would make xfoo use
/usr/X11R6/lib/xaw95/ and both should.
> point to /usr/X11R6/lib/xaw95/ and for the linker to pick up and use the
> libXaw.so in that directory, which is the xaw95 version of the library.
> * Since -rpath was used, this will not work.
see shy jo